⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tlb.s

📁 Windows CE 6.0 BSP for the Beagle Board.
💻 S
字号:
;-------------------------------------------------------------------------------
;
;  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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -