📄 driver.s
字号:
;/*****************************************************************************; * Copyright (C) ARM Limited 1998. All rights reserved. ; *****************************************************************************/;/*****************************************************************************;; EVALUATOR7T specific assembly source code. ; ;******************************************************************************/ INCLUDE bits.s INCLUDE sizes.s INCLUDE platform.s INCLUDE mmu_h.s GET target.s EXPORT uHALir_InitTargetMem ; Initialise memory EXPORT uHALir_FindRAMTop ; Find top of memory EXPORT Level1tab EXPORT Level2tab_ROM EXPORT MPUMaptab KEEP AREA |C$$code$$__evaluator7t|, CODE, READONLY; -------------------------------------------------------------------; Routine to initialise the target-specific RAM:;; See INIT_RAM macro for description; NOTE: lr contains return address; a1 returns top of memoryuHALir_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 MOV pc, lr ; All done, returnuHALir_FindRAMTop STMFD r13!,{v1,v2,v3,v4} GET_RAMSIZE a1,v1,v2,v3,v4 LDMFD r13!,{v1,v2,v3,v4} MOV pc, lr ; All done, return LTORG AREA uHAL_TTentries, DATA, NOINIT;------------------------------------------------------------------; MMU lookup tables. Because the SETUPMMU macro is shared with; semihosted, it uses simple names, these are aliased to uHAL; standard for internal use.;; NOTE: These areas are declared even for processors without MMUs; 4-byte entries,1MB sectionsuHALiv_Level1tabLevel1tab % (0 * 4); 4-byte entries, 64kB pages; x16 aliasuHALiv_Level2tab_ROMLevel2tab_ROM % (0 * 4); 4-byte entries, 8 regions + 3 flagsuHALiv_MPUMaptabMPUMaptab % (0 * 4)exit END
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -