begin:
b Reset_begin
b .
b .
b .
b .
b .
b IRQ_handle
b FIQ_handle
Reset_begin:
@set up irq stack
mov r0, #0xd2 @ make irq mode with all irqs disabled
msr cpsr, r0
ldr sp, =irq_stack @ set sp_irq = irq_stack
bl initTimer
mov r0,#52
msr cpsr,r0
bl hello
b begin
IRQ_handle:
@handle irqs
b .
FIQ_handle:
@handle fiq
b .
b begin
.data
.align 4
irq_stack:
.space 4096
******************************************
这是完成的打包!
>程序是能跑的,串口正常,watchdog的寄存器和中断的寄存器都写不进去,全是 F.
I think serial run normally .So at the least the serial rgister can be written. I guess watch dog is not simulated at all. You can refer to the source file:
http://gro.clinux.org/scm/cvsweb.php/~checkout~/skyeye_gdb_v5.3/sim/arm/skyeye_mach_at91.c?rev=1.14&contenttype=text/plain&cvsroot=skyeye
>看来拿skyeye调试程序前要先学会调试skyeye:-)
It is necessary that use gdb to trace skyeye if you want skyeye to run something that different with testsuite.