|
g_oalAddressTable
DCD 0x80000000, 0x30000000, 64 ; 64 MB DRAM BANK 6
;DCD 0x84000000, 0x10000000, 32 ; nGCS2: PCMCIA/PCCARD
;DCD 0x86000000, 0x18000000, 32 ; 32 MB SROM(SRAM/ROM) BANK 3 (CS8900 netcard)
DCD 0x84000000, 0x18000000, 32 ; BANK3
DCD 0x86000000, 0x20000000, 32 ; BANK4
DCD 0x88000000, 0x00000000, 96 ; 96mb NOR flash
DCD 0x90800000, 0x48000000, 1 ; Memory control register
DCD 0x90900000, 0x49000000, 1 ; USB Host register
DCD 0x90A00000, 0x4A000000, 1 ; Interrupt Control register
DCD 0x90B00000, 0x4B000000, 1 ; DMA control register
DCD 0x90C00000, 0x4C000000, 1 ; Clock & Power register
DCD 0x90D00000, 0x4D000000, 1 ; LCD control register
DCD 0x90E00000, 0x4E000000, 1 ; NAND flash control register
DCD 0x90F00000, 0x4F000000, 1 ; Camera Interface
DCD 0x91000000, 0x50000000, 1 ; UART control register
DCD 0x91100000, 0x51000000, 1 ; PWM timer register
DCD 0x91200000, 0x52000000, 1 ; USB device register
DCD 0x91300000, 0x53000000, 1 ; Watchdog Timer register
DCD 0x91400000, 0x54000000, 1 ; IIC control register
DCD 0x91500000, 0x55000000, 1 ; IIS control register
DCD 0x91600000, 0x56000000, 1 ; I/O Port register
DCD 0x91700000, 0x57000000, 1 ; RTC control register
DCD 0x91800000, 0x58000000, 1 ; A/D convert register
DCD 0x91900000, 0x59000000, 1 ; SPI register
DCD 0x91A00000, 0x5A000000, 1 ; SD Interface register
DCD 0x91B00000, 0x5B000000, 1 ; AC97
; 0x92000000, 0x00000000, 32 ; original location of 32MB of NOR flash
DCD 0x94000000, 0x34000000, 192 ; 192 MB bank 6&7 - Extended RAM
DCD 0x00000000, 0x00000000, 0 ; end of table
EBOOT走到这里
mov r1, #1
mcr p15, 0, r1, c3, c0, 0 ; setup access to domain 0
mcr p15, 0, r10, c2, c0, 0;
mcr p15, 0, r0, c8, c7, 0 ; flush I+D TLBs
mov r1, #0x0071 ; Enable: MMU
orr r1, r1, #0x0004 ; Enable the cache
ldr r0, =VirtualStart
cmp r0, #0 ; make sure no stall on "mov pc,r0" below
mcr p15, 0, r1, c1, c0, 0
mov pc, r0 ; & jump to new virtual address
nop
开启MMU了。
VirtualStart
mov sp, #0x80000000
add sp, sp, #0x65000 ; arbitrary initial super-page stack pointer
;ldr r0, = GPBDAT
mov r0, #0x91600014
我想在这里点灯,请问地址是写0x91600014这个吗?是 mov r0, #0x91600014这条语句吗?编译不通过
;ldr r1, = 0
;str r1, [r0]
b main
错误:
BUILD: [01:0000000024:PROGC ] Assembling .\startup.s
BUILD: [01:0000000029:ERRORE] E:\WINCE600\PLATFORM\My2440\src\bootloader\eboot\startup.s(448) : error A0092: no immediate rotate operand can be created: -1855979500
BUILD: [00:0000000031:PROGC ] Files Warnings Errors
请问那个地址要怎么写呢?
|
|