Unlock instant, AI-driven research and patent intelligence for your innovation.

Control method and device for write protection in embedded system

An embedded system, write protection technology, applied in the direction of preventing unauthorized use of memory, etc., can solve the problem of low security, achieve the effect of improving security, facilitating program error location and processing, and low application cost

Active Publication Date: 2019-05-31
ZTE CORP
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0020] The main purpose of the present invention is to provide a control method for write protection in an embedded system, to at least solve the problem that the security of the write protection method in the embedded system in the prior art is lower

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
  • Control method and device for write protection in embedded system
  • Control method and device for write protection in embedded system
  • Control method and device for write protection in embedded system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0042] Figure 4 It is a preferred flow chart of a control method for write protection in an embedded system according to an embodiment of the present invention, which includes the following steps:

[0043] S401. Obtain an illegal write address to be written by a write instruction that causes an abnormal interruption of the CPU bus, wherein the illegal write address is preset as write protection;

[0044] S402, modifying the illegal write address to an address of a write-allowed area;

[0045] S403. Execute a write command operation on the address of the write-allowed area.

[0046] In this embodiment, the write command that requires the illegal write address is executed by modifying the illegal write address to the address of the area that allows writing, so that the control of write protection does not depend on the device driver interface and CPU provided by the operating system. (central processing unit) MMU (memory management unit) function, special hardware write prote...

Embodiment 2

[0056] The present invention will be described in detail below in conjunction with the accompanying drawings and specific embodiments. Take the CPU of the 32-bit RISC instruction set commonly used in the embedded system of network communication equipment, the communication processor MPC860 series of Freescale (Freescale) Company as an example.

[0057] Such as Figure 5 shown, including the following steps:

[0058] Step S501 , determining the entry address of the bus exception interrupt processing of the CPU. According to the chip description in the MPC860 user manual, the interrupt vector offset address for MPC860 processing bus exceptions is 0x00200 (see chapter 7.1.2.2 of the user manual): Machine Check Interrupt. The machine check interrupt is enabled by setting MSR[ME] (MSR: ME bit of the machine status register). The reason is generally that the access address does not exist or a data error occurs, and writing to the bus protected area will also generate an interrupt....

Embodiment 3

[0069] Figure 8 It is a preferred structural diagram of a control device for write protection in an embedded system according to an embodiment of the present invention, which includes: an acquisition unit 801, configured to acquire an illegal write address to be written by a write instruction that causes an abnormal interruption of the CPU bus, wherein, The illegal write address is preset as write protection; the modification unit 802 is used to modify the illegal write address to the address of the area that allows writing; the execution unit 803 is used to execute the write instruction to the address of the area that allows writing operate.

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 provides a write protection control method and device in an embedded system. The method comprises the following steps: acquiring an illegal write address to be written according to a write instruction causing abnormal interrupt of a CPU (central processing unit) bus, wherein the illegal write address is preset as write protection; modifying the illegal write address as an address of a write allowable region; and executing the write instruction operation to the address of the write allowable region. The method provided by the invention can be used for solving the problem of low security in the write protection method of an embedded system and improving the write protection security of the embedded system.

Description

technical field [0001] The invention relates to the field of embedded systems, in particular to a method and device for controlling write protection in an embedded system. Background technique [0002] In the current embedded system equipment, the embedded operating system is widely used. The embedded operating system takes over most of the hardware resource management in embedded system devices, including accessing the physical address space of external devices through the CPU data address bus, and encapsulating the read, write, and control operations of peripheral devices into several fixed APIs (Application Programming Interface) is provided to developers, such as read (read), wnte (write), ioctrl (input and output control) and other driver interface functions. This method brings a lot of convenience to developers, and does not need to care about the implementation details of the underlying hardware, which speeds up the development speed, but it also brings some hidden d...

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/14
Inventor 魏猷君王超王闯
Owner ZTE CORP