This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

SVC vs SYS mode ?

Other Parts Discussed in Thread: STARTERWARE-SITARA

In StarterWare the init.S has the following instruction and comment.

@

@ Enter the start_boot function. The execution still happens in system mode.
@
@Enter_main:
LDR r10,=start_boot
MOV lr,pc @ Dummy return from start_boot
BX r10 @ Branch to start_boot
SUB pc, pc, #0x08 @ looping

 This appears to be wrong when code is loaded via the debugger (the saved LR is wrong), but more importantly, my experience with prior ARM7 and ARM9 is that things start out in SVC mode. Any idea why Starterware does this and is it correct?

Thanks!

b.