Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and device of protecting code segment in use for MIPS system

A protection device and code segment technology, which is applied in the field of code segment protection, can solve problems such as the inability to protect code segments, and achieve the effect of enhancing maintainability and robustness

Inactive Publication Date: 2010-05-19
HUAWEI TECH CO LTD
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0017] The present invention provides a code segment protection method and device for the MIPS system, which is used to solve the above-mentioned problem that the MIPS system cannot protect the code segment

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device of protecting code segment in use for MIPS system
  • Method and device of protecting code segment in use for MIPS system
  • Method and device of protecting code segment in use for MIPS system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0040]Through the above analysis of related technical solutions, the present invention proposes that to protect the code segment of the host software, at first the program address space of the code segment and data segment in the host software is not in the kseg0 area, but the host The software's program address space falls within an area that can be translated by the MMU. In addition, when compiling and generating the host software, the addresses of the code segment and the data segment must all fall within the area that can be converted by the MMU.

[0041] The present invention will be described in detail below with reference to the accompanying drawings and in combination with embodiments.

[0042] figure 1 A flow chart of a method for implementing code segment protection for a MIPS system is shown, which includes the following steps:

[0043] Step S 102, when compiling and generating the host software, make the addresses of the code segment and the data segment fall wit...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

A method for protecting code section used in MIPS system includes making addresses of code section and data section be both placed in region being able to be converted by internal memory management unit in MIPS system when host software is compiled and generated, making code section and data section be placed in said region in program address space of host software when host software is started up. The protection device for realizing said method is also disclosed.

Description

technical field [0001] The present invention relates to the field of communications, and more specifically, to a code segment protection method and device for a MIPS system. Background technique [0002] MIPS (Microprocessor without Interlocked Pipe Stages, non-interlocked pipeline-level microprocessor) is the most elegant architecture in the efficient RISC (Reduced Instruction Set Computer, reduced instruction set computer) architecture, which makes good use of the pipeline technology. In MIPS 32 and MIPS 64, the most commonly used program address space has the following four areas, each with different attributes: [0003] kuseg: The address space is 0x00000000 ~ 0x7FFFFFFF (low end 2GB), these are the addresses available in user mode. In a machine with an MMU (Memory Manage Unit, memory management unit), these addresses will be converted by the MMU; [0004] kseg0: The address space is 0x80000000~0x9FFFFFFF (512MB), and the addresses in this area are generally accessed ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F9/445G06F11/36
Inventor 肖圣龙
Owner HUAWEI TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products