From: apciy Date: Sat, 10 Nov 2007 10:05:28 +0800 (CST) Subject: [U-Boot-Users] help,copy vector--->ram Message-ID: <21120279.964371194660328241.JavaMail.coremail@bj163app42.163.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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