📄 cleanl2.s
字号:
;
; Copyright (c) Microsoft Corporation. All rights reserved.
;
;
; Use of this source code is subject to the terms of the Microsoft end-user
; license agreement (EULA) under which you licensed this SOFTWARE PRODUCT.
; If you did not accept the terms of the EULA, you are not authorized to use
; this source code. For a copy of the EULA, please see the LICENSE.RTF on your
; install media.
;
;-------------------------------------------------------------------------------
;
; File: cleanl2.s
;
; This file implements L2 cache cleaning for the Freescale ARM1136 CPU.
;
;-------------------------------------------------------------------------------
INCLUDE kxarm.h
INCLUDE armmacros.s
INCLUDE oal_cache.inc
L2CC_SYNC_OFFSET EQU 0x730
IMPORT g_pL2CC
TEXTAREA
;-------------------------------------------------------------------------------
;
; Function: OALCleanL2Cache
;
LEAF_ENTRY OALCleanL2Cache
ldr r1, =g_pL2CC
ldr r1, [r1]
; Since we configure the L2 for write-through mode, we only need to
; perform a L2 cache sync.
ldr r0, =0x0
str r0, [r1, #L2CC_SYNC_OFFSET]
RETURN
END
;-------------------------------------------------------------------------------
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -