sysasm.s

来自「cache test for arm920 core」· S 代码 · 共 69 行

S
69
字号
;=============================================================================;                                                                              ;  FILE:       sysasm.s                       ;                                                                              ;  DESCRIPTION: VeriSuite Syscon driver assembly helper functions.;                                                                              ;  DATE:       03/04/2002;                                                                             ;  Copyright(c) Cirrus Logic Corporation, All Rights Reserved    ;;=============================================================================;==============================================================================; EXPORTED Functions.;==============================================================================    EXPORT  SetAsyncMode    EXPORT  SetSynchMode    EXPORT  SetFastBusMode;==============================================================================; Read-only code area.;==============================================================================    AREA    |Assembly$$Code|, CODE, READONLY;------------------------------------------------------------------------------; SetAsyncMode;------------------------------------------------------------------------------; Enter asynchronous mode;------------------------------------------------------------------------------SetAsyncMode    ;    ; Set clocking mode to Asynchronous    ;    mrc p15, 0, r0, c1, c0, 0    orr r0, r0, #0xc0000000    mcr p15, 0, r0, c1, c0, 0    mov pc, lr    ;------------------------------------------------------------------------------; SetSynchMode;------------------------------------------------------------------------------; Enter synchronous mode;------------------------------------------------------------------------------SetSynchMode    ;    ; Set the clocking mode to Sychronous    ;    mrc p15, 0, r0, c1, c0, 0    bic r0, r0, #0xc0000000    orr r0, r0, #0x40000000    mcr p15, 0, r0, c1, c0, 0    mov pc, lr    ;------------------------------------------------------------------------------;;------------------------------------------------------------------------------; Enter asynchronous mode;------------------------------------------------------------------------------SetFastBusMode    ;    ; Se the clocking mode to fast bus.    ;    mrc p15, 0, r0, c1, c0, 0    bic r0, r0, #0xc0000000    mcr p15, 0, r0, c1, c0, 0    mov pc, lr        END

⌨️ 快捷键说明

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