driver.s
来自「HAL硬件抽象层源码」· S 代码 · 共 55 行
S
55 行
;/*****************************************************************************
; * Copyright (C) ARM Limited 1998. All rights reserved.
; * Copyright (C) Hynix Semiconductor Limited 2002. All rights reserved.
; *****************************************************************************/
;/*****************************************************************************
;
; Hynix HMS39C7092 specific assembly source code.
;
;******************************************************************************/
INCLUDE bits.s
INCLUDE sizes.s
INCLUDE platform.s
;remarked because 7092 does not have MMU. INCLUDE mmu_h.s
GET target.s
EXPORT uHALir_InitTargetMem ; Initialise memory
EXPORT uHALir_FindRAMTop ; Find top of memory
IMPORT uHALir_EnterLockedSvcMode ; Enter Supervisor mode & disable IRQ.
IMPORT uHALir_ExitSvcMode ; Exit Supervisor mode.
IMPORT uHALiv_TopOfMemory ; Top of RAM.
KEEP
AREA |C$$code$$__pid|, CODE, READONLY
; -------------------------------------------------------------------
; Routine to initialise the target-specific RAM:
;
; See INIT_RAM macro for description
; NOTE: lr contains return address
; a1 returns top of memory
uHALir_InitTargetMem
;; Initialise the DRAM (if present)
;INIT_RAM a1,v1,v2,v3,v4
;LDR a1, =uHAL_MEMORY_SIZE
;GET_RAMSIZE a1,v1,v2,v3,v4
ldr r0,=uHAL_MEMORY_SIZE
MOV pc, lr ; All done, return
uHALir_FindRAMTop
;STMFD r13!,{v1,v2,v3,v4}
;GET_RAMSIZE a1,v1,v2,v3,v4
;LDMFD r13!,{v1,v2,v3,v4}
ldr r0,=uHAL_MEMORY_SIZE
MOV pc, lr ; All done, return
END
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?