[U-Boot-Users] help,copy vector--->ram
apciy
apciy at 163.com
Sat Nov 10 03:05:28 CET 2007
hello everyone:)
i am learning the u-boot-1.1.3 .
i got a question about copying the vector to the ram,the following is the piece of code.
the path :u-boot/u-boot-1.1.3/cpu/s3c44b0/start.s
****************************************************************
/*
now copy to sram the interrupt vector
*/
adr r0, real_vectors
add r2, r0, #1024
ldr r1, =0x0c000000
add r1, r1, #0x08
vector_copy_loop:
ldmia r0!, {r3-r10}
stmia r1!, {r3-r10}
cmp r0, r2
ble vector_copy_loop
*****************************************************************
a) "add r2,r0,#1024"
is the real_vectors size 1024 byte? how and where to define it?
b) what will happend if there is not the command "add r1,r1,#0x08"? the first ASM command of real_vectors in the ram begin from 0x0c000000 or 0x0c000008? i think it should be at the 0x0c000000,but it looks the 0x0c000008 is correct...so i lost :(
thanks all of you:)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.denx.de/pipermail/u-boot/attachments/20071110/644ca688/attachment.htm
More information about the U-Boot
mailing list