CPC G06F 21/552 (2013.01) [G06F 9/48 (2013.01); G06F 12/0802 (2013.01); G06F 12/0831 (2013.01); G06F 12/1009 (2013.01); G06F 12/14 (2013.01); G06F 21/57 (2013.01); G06F 21/6218 (2013.01)] | 11 Claims |
1. An electronic device comprising:
a first memory storing an operating system, and an application program for execution in the operating system;
a second memory;
a processor configured to:
load some codes among codes corresponding to the application program from the first memory to the second memory, and
based on access information of the codes loaded in the second memory being received from a kernel of the operating system, execute the application program by accessing an area in which the loaded codes are stored, based on the received information; and
a snoop configured to monitor access to an area in which a predetermined code, the access to which has been limited, among the codes loaded in the second memory is stored,
wherein the processor is further configured to:
based on a first command indicating a start of the predetermined code being executed, transmit a first control signal for stopping the monitoring the access to the area in the second memory in which the predetermined code is stored, to the snoop,
based on the access to the area in which the predetermined code is stored being executed according to the stop of the monitoring the access to the area in which the predetermined code is stored, store data corresponding to the area in which the predetermined code is stored, in a cache memory included in the processor, and
based on a second command indicating an end of the predetermined code being executed, transmit a second control signal for restarting the monitoring the access to the area in which the predetermined code is stored, to the snoop, and remove the data stored in the cache memory.
|