New MPC5554 port messed up, context initialization question
Joel Sherrill
joel.sherrill at OARcorp.com
Thu May 13 11:50:40 UTC 2010
On 05/13/2010 06:42 AM, Peter Dufault wrote:
> I'm updating to the latest current and my code on the MPC5554 stopped working. I traced it to messed up SPE registers (I'm using my own context switch code sent to Thomas D.).
>
> The reason is I'm swapping in an uninitialized context for the SPEFSCR register. I wasn't setting it up in _CPU_Context_Initialize().
>
> Was I just lucky until today? The only thing I can guess is it was 0 before; was anything changed to not zero those register contexts?
>
How old was the old RTEMS version? I think 4.9 was when things
changed to defaulting to NOT zeroing out memory. So after that
change you could get non-zero at init.
I think you were just lucky. :)
Please file a PR with a patch.
--joel
> Peter
> -----------------
> Peter Dufault
> HD Associates, Inc. Software and System Engineering
>
> _______________________________________________
> rtems-users mailing list
> rtems-users at rtems.org
> http://www.rtems.org/mailman/listinfo/rtems-users
>
More information about the users
mailing list