[Prex-devel] sp pointer in umem_* functions
Status: Beta
Brought to you by:
kohtani
From: pradeep s. <pra...@gm...> - 2009-07-22 20:46:01
|
Hello , I was going through umem_strnlen function defined in sys/arch/arm/arm/locore.S : mov r12, sp stmdb sp!, {r4, r11, r12, lr, pc} mov r4, r0 sub r11, r12, #4 cmp r0, #(UMEM_MAX) bhi umem_fault b 2f 1: add r0, r0, #1 2: subs r1, r1, #1 bcc 3f known_fault3: /* May be fault here */ ldrb r3, [r0] cmp r3, #0 bne 1b 3: rsb r0, r4, r0 str r0, [r2] mov r0, #0 /* Set no error */ ldmia sp, {r4, r11, sp, pc} |