ARM (Thumb Mode) _CPU_Context_switch_arm

Sebastian Huber sebastian.huber at embedded-brains.de
Fri Feb 22 10:05:33 UTC 2013


On 02/22/2013 10:39 AM, Matthew J Fletcher wrote:
> Sebastian,
>
> I am using 4.10.2 and the standard rtl22xx_t compiler options of -mcpu=arm7tdmi
> -mthumb -mstructure-size-boundary=8 -mfpu=vfp -mfloat-abi=soft -mapcs-frame
> -fno-schedule-insns2
>
> The registers at before the 'bx lr' instruction in _restore() in cpu.asm.s are;
>
> r0 = 0x81485f54
> r1 = 0x814879a4
> r2 = 0x13
> r3 = 0x81485ee4
> sp = 0x40001c80
> lr = 0x7fffe369
> pc = 0x81189178
>
> gdb says 'p _Thread_Handler'
> $2 = {void (void)} 0x811999f4 <_Thread_Handler>

Which code is at address 0x7fffe369 - 1?  The context will be initialized in 
the function _Thread_Load_environment().

-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber at embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.



More information about the users mailing list