regioninit.s

来自「oki67500系列arm工程例程源代码」· S 代码 · 共 39 行

S
39
字号
;********************************************************************************
;*                                                                              *
;*    Copyright (C) 2003 Oki Electric Industry Co., LTD.                        *
;*                                                                              *
;*    System Name    :  uPLAT                                                   *
;*    Module Name    :  uPLAT initialize region routine                         *
;*    File   Name    :  regioninit.s                                            *
;*    Revision       :  01.00                                                   *
;*    Date           :  2003/08/18                                              *
;*                                                                              *
;********************************************************************************
;
; This file contains the macro and supporting subroutines to
; copy RO code and RW data from ROM to RAM and zero-initialize
; the ZI data areas in RAM.

        AREA    RegionInit, CODE, READONLY

        INCLUDE macro_regioninit.s

        EXPORT InitRegions

; InitRegions is called from boot.s to initialize the specified execution regions.
; In this example, the regions are called 32bitRAM and 16bitRAM.
; These execution region names should match those given in the scatter description file.

InitRegions
        STMFD sp!,{lr}
        macro_RegionInit BANK10
        macro_RegionInit RAM
        LDMFD sp!,{pc}

        AREA    RegionData, DATA, READWRITE
        
        EXPORT  bank0_size
        IMPORT  |Image$$BANK0$$Length|
bank0_size      DCD     |Image$$BANK0$$Length|
        
        END

⌨️ 快捷键说明

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