SPRUI30H November 2015 – May 2024 DRA745 , DRA746 , DRA750 , DRA756
The ROM code provides different services that can be called for L1 and L2 cache maintenance, Enter in Low Power, etc. These services are implemented in monitor mode and must be called by using the SMC instruction. The caller must ensure the save and restore of the processor registers before and after calling the Monitor Service.
The following code example shows how the monitor ROM code functions can be accessed by an application running in public mode:
;------------------------------------------------------------------------------
; FUNCTION: SetL2CacheLatency
;
; DESCRIPTION: Function calls the Monitor Service to setup the L2 Cache Latency
;
; INPUTS: r0 Tag RAM Latency to set
; r1 Data RAM Latency to set
; RETURN:
;
;------------------------------------------------------------------------------
SetL2CacheLatency FUNCTION
PUSH {R1-R12, LR}
LDR R12, =0x105
SMC 0x1
POP {R1-R12, PC}
ENDFUNC