Memory management system for preventing program execution when CPU fetches execution code from unoccupied region of memory
AssigneeBenq Corporation
InventorChu-Ching Yang
Life of this patent
Estimating the term…
Abstract
A memory management system and method. The system includes a first storage device and a processing unit. The first storage device stores an exception code excluding operation codes (op-codes) corresponding to an instruction set. The processing unit reads the exception code from the first storage device and writes it to at least one unoccupied region of a memory in an electronic device, thereby enabling the electronic device to stop program execution when the CPU fetches the exception code from the unoccupied region of the memory.
Claims13
A system of memory management, comprising:
- a first storage device storing an exception code, wherein the exception code is a number excluding operation codes corresponding with an instruction set;
- a memory comprising a program memory and a data memory;
- and
- a processing unit coupling to the first storage device, configured to input the exception code from the first storage device, write the exception code to the memory entirely in an electronic device, and configured to replace the exception code with at least one program in the program memory and reserves free space between each two programs, the length of free space exceeds the length of the exception code, thereby enabling the electronic device to stop program execution when a CPU in the electronic device fetches the exception code from the memory.
A method of memory management, comprising
- reading a exception code, the exception code is a number excluding operation codes corresponding to an instruction set;
- writing the exception code to a memory entirely in an electronic device, wherein the memory comprises a program memory and a data memory;
- and
- replacing the exception code with at least one program in the program memory and reserving free space between each two programs, the length of the free space exceeds the length of the exception code, thereby enabling the electronic device to stop program execution when a CPU in the electronic device fetches the exception code from the memory.
A machine-readable storage medium storing a computer program which when executed performs a method of memory management, the method comprising the steps of:
- reading an exception code, the exception code is a number excluding operation codes corresponding to an instruction set;
- writing the exception code to a memory entirely in an electronic device, wherein the memory comprises a program memory and a data memory;
- replacing the exception code with at least one program in at least one preserved region of the program memory;
- and reserving free space between each two programs, the length of the free space exceeds the length of the exception code, thereby enabling the electronic device to stop program execution when a CPU in the electronic device fetches the exception code from the memory.
Dependencies are inferred from the claim text.