summaryrefslogtreecommitdiffstats
path: root/cpukit/score/cpu/sh/rtems/score/cpu.h
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/sh/rtems/score/cpu.h
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/sh/rtems/score/cpu.h')
-rw-r--r--cpukit/score/cpu/sh/rtems/score/cpu.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/cpukit/score/cpu/sh/rtems/score/cpu.h b/cpukit/score/cpu/sh/rtems/score/cpu.h
index 8fc01bd9e4..8870833857 100644
--- a/cpukit/score/cpu/sh/rtems/score/cpu.h
+++ b/cpukit/score/cpu/sh/rtems/score/cpu.h
@@ -365,6 +365,9 @@ typedef struct {
} Context_Control;
+#define _CPU_Context_Get_SP( _context ) \
+ (_context)->r15
+
typedef struct {
#if SH_HAS_FPU
#ifdef SH4_USE_X_REGISTERS