summaryrefslogtreecommitdiffstats
path: root/cpukit/score/cpu/no_cpu/rtems/score/cpu.h
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/score/cpu/no_cpu/rtems/score/cpu.h')
-rw-r--r--cpukit/score/cpu/no_cpu/rtems/score/cpu.h8
1 files changed, 8 insertions, 0 deletions
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