Microprocessor storage management method

A microprocessor and storage management technology, applied in the direction of memory address/allocation/relocation, etc., can solve the problem of spending a lot of CPU clock cycles, and achieve the effect of speeding up the conversion speed and avoiding address "conflict"

Active Publication Date: 2015-10-21
苏州讯升信息科技有限公司
View PDF7 Cites 8 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Most CPUs use paging storage management, and the logical address used by the program needs to be converted into a physica

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0038] The technical solution of the present invention is further described in detail below, but the protection scope of the present invention is not limited to the following description.

[0039] A microprocessor storage management method, the page table attributes are as follows:

[0040] The register page length of the microprocessor is 64 bits, the high 11 bits are reserved, the middle 40 bits are the page frame number, and the low 13 bits are the page table attribute items;

[0041] Among them, bits 42-13: the page table index is at the physical address, that is, the page frame number;

[0042] No. 12-1: Reserved for system use;

[0043] Bit 0: page presence bit p;

[0044] When the page existence bit P=0, it means that the page is not in the memory, and it is reserved for the operating system to locate the page position on the disk. If the page with P=0 is accessed, a "page fault" will be triggered and it will be handled by the interrupt The program is responsible for...

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

The invention discloses a microprocessor storage management method. The method comprises: whenever a process references a logic address, a storage management unit searching in a cache index storage cell and automatically looking up in a translation lookaside buffer, if the logic address is found, translating a cache address on a chip, if the logic address is not found, executing address translation operation; adding a page frame number with last 13 bits of the logic address to obtain a physical address, if the address is in a range of a multitask protection start address register to a multitask protection end address register, virtual address translation being successful, if the address is not in a range of a start address register to the end address register, a microprocessor generating address translation out-of-range anomaly. The invention provides a novel microprocessor storage management method, and translation speed of a logic address to a physical address is accelerated. Through arranging the multitask protection start address register and the multitask protection end address register, the operating system can prevent illegal access of user programs.

Description

technical field [0001] The invention relates to a storage management method for a microprocessor. Background technique [0002] Virtual memory technology is an abstract description of the entire memory, which can be understood as the sum of virtual addresses provided by the processor for user programs. Compared with physical memory, it does not "real" exist because modern operating systems provide An abstraction of memory management, namely virtual memory. The process uses the address in virtual memory, and the operating system assists the relevant hardware to "convert" it into a real physical address. With such an abstraction, a process can use a much larger address space than the real physical address, and even multiple processes can use the same address. [0003] The main memory of real computer equipment is limited, and the process can have a huge logical address through the storage management unit. Logical address refers to the address of an operand or an instruction...

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
IPC IPC(8): G06F12/08
CPCG06F12/08
Inventor 周海林
Owner 苏州讯升信息科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products