diff options
Diffstat (limited to 'cpukit/score/cpu/mips')
-rw-r--r-- | cpukit/score/cpu/mips/ChangeLog | 4 | ||||
-rw-r--r-- | cpukit/score/cpu/mips/rtems/score/cpu.h | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/cpukit/score/cpu/mips/ChangeLog b/cpukit/score/cpu/mips/ChangeLog index ccb047ddc4..cbacb142da 100644 --- a/cpukit/score/cpu/mips/ChangeLog +++ b/cpukit/score/cpu/mips/ChangeLog @@ -1,3 +1,7 @@ +2007-12-17 Joel Sherrill <joel.sherrill@oarcorp.com> + + * rtems/score/cpu.h: Add _CPU_Context_Get_SP() for stack check utility. + 2007-12-04 Joel Sherrill <joel.sherrill@OARcorp.com> * cpu.c, rtems/score/cpu.h: Move interrupt_stack_size field from CPU diff --git a/cpukit/score/cpu/mips/rtems/score/cpu.h b/cpukit/score/cpu/mips/rtems/score/cpu.h index 2b9727fd80..8c9a24fdc0 100644 --- a/cpukit/score/cpu/mips/rtems/score/cpu.h +++ b/cpukit/score/cpu/mips/rtems/score/cpu.h @@ -402,6 +402,9 @@ typedef struct { __MIPS_REGISTER_TYPE c0_epc; } Context_Control; +#define _CPU_Context_Get_SP( _context ) \ + (_context)->sp + /* WARNING: If this structure is modified, the constants in cpu.h * must also be updated. */ |