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

Memory protection unit, memory protection method, and computer-readable record medium in which memory protection program is recorded

a memory protection and memory protection technology, applied in the field of memory management, can solve the problems of affecting the area within the process unit, affecting the performance of the whole system, and unable to obtain access to the memory area in the virtual address space of another process, so as to prevent improper rewriting of the memory

Inactive Publication Date: 2005-06-30
PANASONIC CORP
View PDF19 Cites 9 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Benefits of technology

[0014] In order to resolve the above described conventional disadvantages, it is an object of the present invention to provide a memory protection unit, a memory protection method and a computer-readable record medium in which memory protection program is recorded which are capable of preventing a memory from being improperly rewritten by a malfunction in a subroutine.

Problems solved by technology

Hence, a process in operation within the allocated virtual address space cannot obtain access to a memory area in the virtual address space of another process.
Thereby, even though something is wrong with software, it can only affect the area within a process unit.
This may lower the whole system's performance.
Such a deterioration in the performance can largely affect, especially, so-called embedded equipment, such as a cellular phone, a digital television and a household electrical appliance.
Thus, in an operating system which presides over the control of embedded equipment, it is difficult to adopt the method of allocating a virtual address space for each process.
However, it has no access to the memory areas of the other domains.
However, according to the prior art, in a system which is configured by one or a small number of threads, it is almost impossible to divide a memory into smaller domain units.
However, in an environment where there are only one or a few domains, a malfunction can affect a larger area within a domain.
This makes it difficult to prevent a memory from being improperly rewritten.

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
  • Memory protection unit, memory protection method, and computer-readable record medium in which memory protection program is recorded
  • Memory protection unit, memory protection method, and computer-readable record medium in which memory protection program is recorded
  • Memory protection unit, memory protection method, and computer-readable record medium in which memory protection program is recorded

Examples

Experimental program
Comparison scheme
Effect test

first embodiment

[0059]FIG. 1 is a block diagram, showing the configuration of a memory protection unit according to a first embodiment of the present invention. Herein, the Linux operating system is used as an example. For the present invention, operating systems except the Linux may also be used, such as UNIX (registered trademark), Windows (registered trademark) and TRON (registered trademark).

[0060] The memory protection unit shown in FIG. 1 is configured by: a CPU (or central processing unit) 100; a memory 101; and a memory management unit (or MMU) 102. The CPU 100, the memory 101 and the memory management unit 102 can mutually transmit and receive data, for example, through a bus.

[0061] In the memory 101, there are allocated areas which store a plurality of subroutines #1, #2, . . . #N (111, 112, 113), and a subroutine memory area 106 which is used by the subroutines. As the memory 101, an optional type can be used, for example, an RAM (or random access memory) or a flash memory. In addition...

second embodiment

[0086]FIG. 9 is a block diagram, showing the configuration of a memory protection unit according to a second embodiment of the present invention. The memory protection unit shown in FIG. 9 is configured by: a CPU (or central processing unit) 100; a memory 101; and a memory management unit (or MMU) 102. The CPU 100, the memory 101 and the memory management unit 102 can mutually transmit and receive data, for example, through a bus. The CPU 100 functions as a subroutine choice section 103, a memory-area specification section 104, a subroutine calling section 105, and a first interruption-response processing section 301. Those functions are realized by executing a memory protection program which is recorded beforehand in a computer-readable record medium such as an ROM. In FIG. 9, the components which have the same configuration as those in FIG. 1 are given the identical reference numerals and characters. Thus, their description is omitted. In FIG. 9, the part which is different from F...

third embodiment

[0095]FIG. 12 is a block diagram, showing the configuration of a memory protection unit according to a third embodiment of the present invention. The memory protection unit shown in FIG. 12 is configured by: a CPU (or central processing unit) 100; a memory 101; and a memory management unit (or MMU) 102. The CPU 100, the memory 101 and the memory management unit 102 can mutually transmit and receive data, for example, through a bus. The CPU 100, the memory 101 and the memory management unit 102 can mutually transmit and receive data, for example, through a bus. The CPU 100 functions as a subroutine choice section 103, a memory-area specification section 104, a subroutine calling section 105, and a second interruption-response processing section 401. Those functions are realized by executing a memory protection program which is recorded beforehand in a computer-readable record medium such as an ROM. In FIG. 12, the components which have the same configuration as those in FIG. 9 are gi...

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 memory protection unit, a memory protection method and a computer-readable record medium in which a memory protection program is recorded is provided which are capable of preventing a memory from being improperly rewritten by a malfunction in a subroutine. This memory protection unit includes: a memory which has at least one memory area that is used by at least one subroutine, and in which a writing attribute that shows a writing permission or a writing prohibition can be set for every memory area; a subroutine choice section which chooses a subroutine that executes a processing request; a memory-area specification section which specifies a memory area that is used by the subroutine; and a subroutine calling section which sets, to the writing permission, the writing attribute of the specified memory area, calls the chosen subroutine, and sets, to the writing prohibition, the writing attribute of the memory area after completing the execution of the subroutine.

Description

BACKGROUND OF THE INVENTION [0001] 1. Field of the Invention [0002] The present invention relates to memory management in an operating system. Specifically, it relates to a memory protection unit which protects a memory from its improper rewriting. In addition, it also relates to a memory protection method and a computer-readable record medium in which a memory protection program is recorded, which are used to do the same. [0003] 2. Description of the Related Art [0004] Conventionally, the following method is known as the art of managing a memory in an operating system, particularly protecting a memory. An application which operates in such a system is divided into several processes. Then, a virtual address space is allocated for each process. [0005] Such a process includes one address space, and is a processing unit which reads and writes in a memory area within the address space. Each process corresponds to a single address space. A thread is a processing unit which shares one add...

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 Applications(United States)
IPC IPC(8): G06F12/14G06F21/00
CPCG06F21/52
Inventor EJIMA, KENJIMIZUYAMA, MASASHIGE
Owner PANASONIC CORP
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