1.1 --- a/test/lib-arm/crt0.s Wed Aug 13 10:32:00 2008 +0000
1.2 +++ b/test/lib-arm/crt0.s Sun Oct 19 05:42:05 2008 +0000
1.9 + b exception_entry /* SWI - not used so jump to general exception */
1.12 + b exception_entry /* Not a vector, but if we ever get here... */
1.16 /* Start by setting up a stack */
1.18 /* Set up the stack pointer to a fixed value */
1.22 However, it ensures that this simple crt0 world will not
1.23 immediately cause an overflow event: */
1.24 sub sl, sp, #64 << 10 /* Still assumes 256bytes below sl */
1.28 + .word -1 /* Syscall # */
1.29 + .word 0 /* Arguments */
1.39 /* Zero-out the BSS segment */
1.40 mov a2, #0 /* Second arg: fill value */
1.41 mov fp, a2 /* Null frame pointer */
1.44 sub a3, a3, a1 /* Third arg: length of block */
1.47 - .word 0 /* padding */
1.50 - .word -1 /* Syscall # */
1.51 - .word 0 /* Arguments */
1.55 /* Enter main with no arguments for now */
1.57 mov r0, #0 /* no arguments */
1.58 mov r1, #0 /* no argv either */
1.62 /* For Thumb, constants must be after the code since only
1.63 positive offsets are supported for PC relative addresses. */
1.72 + /* Increment IRQ counter and return */
1.73 + ldr r13, irq_counter
1.75 + str r13, irq_counter
1.78 + /* Increment FIQ counter and return */
1.79 + ldr r13, fiq_counter
1.81 + str r13, fiq_counter