Methods and device of channel register initialization, DMA (Direct Memory Access) equipment and terminal

An initialization method and register technology, applied in the security field, can solve the problems of DMA devices being easily hijacked and affecting system security, etc.

Pending Publication Date: 2018-08-24
NATIONZ TECH INC
View PDF0 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The technical problem to be solved by the present invention is to solve the problem that traditional DMA equipment is easily hijacked, and data is moved under the control of the attacker, which affects system security. Aiming at this technical problem, a channel register initialization method, device and DMA equipment, terminal

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
  • Methods and device of channel register initialization, DMA (Direct Memory Access) equipment and terminal
  • Methods and device of channel register initialization, DMA (Direct Memory Access) equipment and terminal
  • Methods and device of channel register initialization, DMA (Direct Memory Access) equipment and terminal

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0066] In this embodiment, the channel register initialization method can be jointly executed by the CPU and the DMA device, combined below figure 2 The flow of the channel register initialization method is introduced:

[0067] S202: The CPU configures initialization information for channel registers in the direct memory access DMA device according to the data transfer task.

[0068] In this embodiment, the initialization information corresponding to the data moving task is delivered to the DMA device by the CPU. Therefore, whether it is a data transfer task from the CPU itself or a data transfer task for peripherals, the initialization information of the channel registers is configured by the CPU. In this embodiment, the initialization information is information used to indicate at least one of a source address and a destination address in each data migration task. For example, in some examples of this embodiment, the initialization information includes both the source add...

Embodiment 2

[0098] This embodiment will continue to introduce the flow of the channel register initialization method on the DMA device side on the basis of the first embodiment. Here, the data transfer instruction issued by the CPU is the real-time data transfer instruction, and the instruction interaction interface is the slave of the DMA device. machine interface as an example, please refer to Figure 7 :

[0099] S701: the slave interface receives a data transfer command from the bus;

[0100] S702: the slave machine interface judges whether the instruction buffer is full;

[0101] If the instruction buffer is full, the slave interface cannot buffer the received data transfer instruction into the instruction buffer, so if the judgment result is yes, execute S703; otherwise, execute S704.

[0102] S703: The slave machine interface feeds back information indicating that the DMA device is temporarily unable to respond to the CPU;

[0103] For example, in this embodiment, the slave inte...

Embodiment 3

[0117] In order to solve the problem in the prior art that when the channel register in the DMA device is initialized, the initialization information is directly transmitted, causing the DMA device to be easily hijacked by a malicious attacker, thereby moving the data specified by the malicious attacker and threatening the security of the system, this embodiment provides a DMA device that combines the following Figure 8 with Figure 9 The structure of the DMA device and the initialization process of the channel register in the DMA device are introduced:

[0118] The DMA device 80 includes a slave interface 801 , an instruction buffer 802 , an instruction processor 803 , a channel register 804 , a peripheral information register 805 , a controller 806 , a host interface 807 , and an internal cache 808 . The slave interface 801 is communicatively connected with the instruction register 802 . The instruction buffer 802 can be used to store the data movement instruction receive...

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 methods and device of channel register initialization, DMA (Direct Memory Access) equipment and terminal. A channel register in the DMA equipment is initialized through the methods of channel register initialization provided by the embodiment, and the DMA equipment no longer receives direct initialization information, but accepts data movement instructions after protectionprocessing. The initialization information is not directly exposed. The embodiment further provides the device of channel register initialization, the DMA equipment and the terminal. A de-protection processing rule corresponds to a protection processing rule, only de-protection processing of the data movement instructions obtained by processing of the protection processing rule can be successfullycarried out by an instruction processor to obtain the initialization information, thus two processes of protection processing and de-protection processing cooperate with each other, authentication onsources of the data movement instructions can be realized, monitoring on DMA data movement can be realized, legality of data movement requesters can be guaranteed, and security of a system can be improved.

Description

technical field [0001] The present invention relates to the field of security technology, and more specifically, relates to a channel register initialization method, device, DMA device and terminal. Background technique [0002] Direct memory access (Direct Memory Access, DMA) refers to a technology that allows data to be exchanged directly between storage devices without the intervention of the CPU. The DMA device is responsible for data transfer in the system and is an important part of the system data path. The data it transfers can be a program or ordinary data; it can realize data transfer between the external storage device and the terminal memory. It is also possible to move data from one external storage device to another external storage device. [0003] In traditional DMA, the DMA device obtains initialization information such as the source address of the data to be moved, the destination address, and the size of the data to be moved from the bus, and then initial...

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(China)
IPC IPC(8): G06F9/30
CPCG06F9/30098
Inventor 孙瑞一
Owner NATIONZ TECH INC
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