diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2007-12-17 22:35:25 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2007-12-17 22:35:25 +0000 |
commit | 0ca6d0d9386ba4d4c44b4b4107ee80444f325efe (patch) | |
tree | 2ebd79281fedd50f4f7e9b946a0f3cc08bf6a874 /cpukit/score/cpu/sparc | |
parent | 2007-12-17 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-0ca6d0d9386ba4d4c44b4b4107ee80444f325efe.tar.bz2 |
2007-12-17 Joel Sherrill <joel.sherrill@oarcorp.com>
* rtems/score/cpu.h: Add _CPU_Context_Get_SP() for stack check utility.
Diffstat (limited to 'cpukit/score/cpu/sparc')
-rw-r--r-- | cpukit/score/cpu/sparc/ChangeLog | 4 | ||||
-rw-r--r-- | cpukit/score/cpu/sparc/rtems/score/cpu.h | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/cpukit/score/cpu/sparc/ChangeLog b/cpukit/score/cpu/sparc/ChangeLog index bc03c0a2f3..ea6892f3a8 100644 --- a/cpukit/score/cpu/sparc/ChangeLog +++ b/cpukit/score/cpu/sparc/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/sparc/rtems/score/cpu.h b/cpukit/score/cpu/sparc/rtems/score/cpu.h index c5c5aec637..e9678420af 100644 --- a/cpukit/score/cpu/sparc/rtems/score/cpu.h +++ b/cpukit/score/cpu/sparc/rtems/score/cpu.h @@ -336,6 +336,9 @@ typedef struct { uint32_t isr_dispatch_disable; } Context_Control; +#define _CPU_Context_Get_SP( _context ) \ + (_context)->o6_sp + #endif /* ASM */ /* |