summaryrefslogtreecommitdiffstats
path: root/cpukit/score/cpu/powerpc
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2007-12-17 22:35:25 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2007-12-17 22:35:25 +0000
commit0ca6d0d9386ba4d4c44b4b4107ee80444f325efe (patch)
tree2ebd79281fedd50f4f7e9b946a0f3cc08bf6a874 /cpukit/score/cpu/powerpc
parent2007-12-17 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-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/powerpc')
-rw-r--r--cpukit/score/cpu/powerpc/ChangeLog4
-rw-r--r--cpukit/score/cpu/powerpc/rtems/score/cpu.h3
2 files changed, 7 insertions, 0 deletions
diff --git a/cpukit/score/cpu/powerpc/ChangeLog b/cpukit/score/cpu/powerpc/ChangeLog
index 54fe01072d..d23fc8634c 100644
--- a/cpukit/score/cpu/powerpc/ChangeLog
+++ b/cpukit/score/cpu/powerpc/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-17 Joel Sherrill <joel.sherrill@OARcorp.com>
* rtems/powerpc/registers.h, rtems/score/cpu.h: Sweep to make sure grep
diff --git a/cpukit/score/cpu/powerpc/rtems/score/cpu.h b/cpukit/score/cpu/powerpc/rtems/score/cpu.h
index f69f981827..e0be8f52bc 100644
--- a/cpukit/score/cpu/powerpc/rtems/score/cpu.h
+++ b/cpukit/score/cpu/powerpc/rtems/score/cpu.h
@@ -251,6 +251,9 @@ typedef struct {
uint32_t msr; /* Initial interrupt level */
} Context_Control;
+#define _CPU_Context_Get_SP( _context ) \
+ (_context)->gpr1
+
typedef struct {
/* The ABIs (PowerOpen/SVR4/EABI) only require saving f14-f31 over
* procedure calls. However, this would mean that the interrupt