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

📄 mmu.s

📁 注意编译环境:ARM-Linux
💻 S
字号:
; These functions are needed in the simple boot program.
; They came from the .axf file which samsung gives.
; Code adjusted by : yangchu
; 2004.9.17

  AREA   mmu, CODE, READONLY

; void MMU_EnableICache(void)
;
; This function enables instruction cache in ARM920T.

        EXPORT MMU_EnableICache
MMU_EnableICache
        mrc      p15,0x0,r0,c1,c0,0
        orr      r0,r0,#0x1000
        mcr      p15,0x0,r0,c1,c0,0
        mov      pc,r14

; void MMU_SetAsyncBusMode(void)
;
; This function sets the AMBA bus to be asyc. mode.

        EXPORT MMU_SetAsyncBusMode
MMU_SetAsyncBusMode
        mrc      p15,0x0,r0,c1,c0,0
        orr      r0,r0,#0xc0000000
        mcr      p15,0x0,r0,c1,c0,0
        mov      pc,r14

        END

⌨️ 快捷键说明

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