tlb.s

来自「Windows CE 6.0 BSP for the Beagle Board.」· S 代码 · 共 109 行

S
109
字号
;-------------------------------------------------------------------------------
;
;  File:  tlb.s
;
;
        INCLUDE kxarm.h
        INCLUDE armmacros.s

        TEXTAREA

;-------------------------------------------------------------------------------
;
;  Function:  OALClearITLB
;
;  Flush and invalidate the instruction TLB
;
        LEAF_ENTRY OALClearITLB

        mov     r0, #0
        mcr     p15, 0, r0, c8, c5, 0   ; flush instruction TLB

        nop
        nop

        RETURN

;-------------------------------------------------------------------------------
;
;  Function:  OALClearITLBEntry
;
;  Flush and invalidate an entry in the instruction TLB
;
        LEAF_ENTRY OALClearITLBEntry

        mcr     p15, 0, r0, c8, c5, 1   ; flush instruction TLB entry

        nop
        nop

        RETURN

;-------------------------------------------------------------------------------
;
;  Function:  OALClearITLBAsid
;
;  Flush and invalidate the instruction TLB for a particular process
;
        LEAF_ENTRY OALClearITLBAsid

        mcr     p15, 0, r0, c8, c5, 2   ; flush instruction TLB for ASID

        nop
        nop

        RETURN

;-------------------------------------------------------------------------------
;
;  Function:  OALClearDTLB
;
;  Flush and invalidate the data TLB
;
        LEAF_ENTRY OALClearDTLB

        mov     r0, #0
        mcr     p15, 0, r0, c8, c6, 0   ; flush data TLB

        nop
        nop

        RETURN


;-------------------------------------------------------------------------------
;
;  Function:  OALClearDTLBEntry
;
;  Flush and invalidate an entry in the data TLB
;
        LEAF_ENTRY OALClearDTLBEntry

        mcr     p15, 0, r0, c8, c6, 1   ; flush data TLB entry

        nop
        nop

        RETURN

;-------------------------------------------------------------------------------
;
;  Function:  OALClearDTLBAsid
;
;  Flush and invalidate the data TLB for a particular process
;
        LEAF_ENTRY OALClearDTLBAsid

        mcr     p15, 0, r0, c8, c6, 2   ; flush data TLB for ASID

        nop
        nop

        RETURN

;-------------------------------------------------------------------------------

        END

        

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?