A storage management method for a microprocessor

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 "conflicts"

Active Publication Date: 2017-11-10
苏州讯升信息科技有限公司
View PDF7 Cites 0 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 physical address, and a large number of CPU clock cycles will be spent in the conversion from logical address to physical address

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

Disclosed is a microprocessor storage management method: whenever a process references a logic address, a storage management unit searches in a cache index storage cell and automatically looks up in a "quick table" first; if the logic address is found, a cache address on the chip is translated; if the logic address is not found, an address translation operation is executed; a page frame number is added to 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 is successful; and if the address is not in a range of the start address register to the end address register, a microprocessor generates an address translation out-of-range exception. A novel microprocessor storage management method is provided by the present invention, and translation speed of a logic address to a physical address is accelerated. The operating system can prevent illegal accesses of user programs by arranging the multitask protection start address register and the multitask protection end address register.

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
Patent Type & Authority Patents(China)
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