Ignore:
Timestamp:
Nov 2, 2007, 1:35:02 PM (13 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.9, 5, master
Children:
137c410
Parents:
7cb1d6ea
Message:

2007-11-02 Joel Sherrill <joel.sherrill@…>

  • score/cpu/sparc/cpu.c, score/cpu/sparc/rtems/score/cpu.h, score/include/rtems/score/context.h, score/src/threadhandler.c: Fix stack so gdb backtrace does not print corrupted frame message after _Thread_Handler. Daniel Hellstrom <daniel@…> provided the SPARC implementation and I made it more general.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/score/include/rtems/score/context.h

    r7cb1d6ea r48816d7  
    6868#define _Context_Initialize(_the_context, _stack, _size, _isr, _entry, _is_fp) \
    6969   _CPU_Context_Initialize( _the_context, _stack, _size, _isr, _entry, _is_fp )
     70
     71/**
     72 *  This macro is invoked from _Thread_Handler to do whatever CPU
     73 *  specific magic is required that must be done in the context of
     74 *  the thread when it starts.
     75 *
     76 *  If the CPU architecture does not require any magic, then this
     77 *  macro is empty.
     78 */
     79
     80#if defined(_CPU_Context_Initialization_at_thread_begin)
     81  #define _Context_Initialization_at_thread_begin() \
     82     _CPU_Context_Initialization_at_thread_begin()
     83#else
     84  #define _Context_Initialization_at_thread_begin()
     85#endif
    7086
    7187/**
Note: See TracChangeset for help on using the changeset viewer.