summaryrefslogtreecommitdiffstats
path: root/cpukit/score/cpu/no_cpu
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/no_cpu
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/no_cpu')
-rw-r--r--cpukit/score/cpu/no_cpu/ChangeLog4
-rw-r--r--cpukit/score/cpu/no_cpu/rtems/score/cpu.h8
2 files changed, 12 insertions, 0 deletions
diff --git a/cpukit/score/cpu/no_cpu/ChangeLog b/cpukit/score/cpu/no_cpu/ChangeLog
index 0e902c3034..5932fcef42 100644
--- a/cpukit/score/cpu/no_cpu/ChangeLog
+++ b/cpukit/score/cpu/no_cpu/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-11 Joel Sherrill <joel.sherrill@OARcorp.com>
* rtems/score/cpu.h: Style.
diff --git a/cpukit/score/cpu/no_cpu/rtems/score/cpu.h b/cpukit/score/cpu/no_cpu/rtems/score/cpu.h
index 97072b4b62..d175511616 100644
--- a/cpukit/score/cpu/no_cpu/rtems/score/cpu.h
+++ b/cpukit/score/cpu/no_cpu/rtems/score/cpu.h
@@ -460,8 +460,16 @@ typedef struct {
* registers that need to be saved at a context switch.
*/
uint32_t some_system_register;
+
+ /** This field is a hint that a port will have a register that
+ * is the stack pointer.
+ */
+ uint32_t stack_pointer;
} Context_Control;
+#define _CPU_Context_Get_SP( _context ) \
+ (_context)->stack_pointer
+
/**
* @ingroup CPUContext Management
* This defines the complete set of floating point registers that must