From 0ca6d0d9386ba4d4c44b4b4107ee80444f325efe Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Mon, 17 Dec 2007 22:35:25 +0000 Subject: 2007-12-17 Joel Sherrill * rtems/score/cpu.h: Add _CPU_Context_Get_SP() for stack check utility. --- cpukit/score/cpu/c4x/rtems/score/cpu.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'cpukit/score/cpu/c4x/rtems/score/cpu.h') diff --git a/cpukit/score/cpu/c4x/rtems/score/cpu.h b/cpukit/score/cpu/c4x/rtems/score/cpu.h index 6809c1d14e..612d6c5668 100644 --- a/cpukit/score/cpu/c4x/rtems/score/cpu.h +++ b/cpukit/score/cpu/c4x/rtems/score/cpu.h @@ -474,6 +474,9 @@ typedef struct { unsigned int sp; } Context_Control; +#define _CPU_Context_Get_SP( _context ) \ + (_context)->sp + typedef struct { } Context_Control_fp; -- cgit v1.2.3