Patent ID: 11860804
Assignee: REALTEK SEMICONDUCTOR CORPORATION
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 7:
8. An electronic device, comprising:
a processor configured to generate a control command, wherein the control command is configured to set an operation mode of a Direct Memory Access (DMA) controller;
a memory containing a privilege area and a normal area; and
the DMA controller coupled to the processor and the memory through a bus and comprising:
a DMA channel;
a configuration interface, wherein the DMA controller receives the control command through the configuration interface; and
a mode register configured to store a register value corresponding to the control command, wherein when the register value is a first value, the DMA channel operates in a privilege mode, and when the register value is a second value, the DMA channel operates in a normal mode;

wherein when the DMA channel is operating in the privilege mode, the DMA channel is able to access the privilege area and the normal area, and when the DMA channel is operating in the normal mode, the DMA channel is able to access the normal area but unable to access the privilege area.