PowerPc RTOS Initialisation Issue

Joel Sherrill joel.sherrill at oarcorp.com
Wed Jun 6 18:39:30 UTC 2007


brad chisholm wrote:
> Hi,
>
> I have an issue with running RTEMS on my powerpc platform (PPC405). The
> system appears to initialize correctly until the function
> _Thread_Start_multitasking calls _Context_Switch( &_Thread_BSP_context,
> &_Thread_Heir->Registers );
>
>   
This usually indicates you are getting a spurious interrupt and the 
interrupts are
not properly initialized. This is the first time interrupts are enabled 
in the initialization
sequence.
> At the end of the context switch when bclr executed the processor jumps
> to an incorrect location (To the end of function _Thread_Evaluate_mode)
> and the gdb indicates an error.
>
> The gdb is generating a lot of these errors during initialisation:
> Previous frame inner to this frame (corrupt stack?)
>
> The two instructions before the failure:
> Previous frame identical to this frame (corrupt stack?)
>
>   
Looks like the start.S code isn't setting up the stack in a way that makes
gdb happy but it is enough to run.

I assume these are when you stop and backtrace.
> Previous frame identical to this frame (corrupt stack?)
> Cannot access memory at address 0x4
> Cannot access memory at address 0x4
> Cannot access memory at address 0x4
> Cannot access memory at address 0x4
> Cannot access memory at address 0x4
> Cannot access memory at address 0x30a68
> Cannot access memory at address 0x30ab4
>
> My memory address range goes from 0 - 0x400000
>
> Any thoughts?
>
> Regards
> Brad
> _______________________________________________
> rtems-users mailing list
> rtems-users at rtems.com
> http://rtems.rtems.org/mailman/listinfo/rtems-users
>   




More information about the users mailing list