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/i386/ChangeLog | 4 ++++ cpukit/score/cpu/i386/rtems/score/cpu.h | 3 +++ 2 files changed, 7 insertions(+) (limited to 'cpukit/score/cpu/i386') diff --git a/cpukit/score/cpu/i386/ChangeLog b/cpukit/score/cpu/i386/ChangeLog index cb87edb03f..cfdf110400 100644 --- a/cpukit/score/cpu/i386/ChangeLog +++ b/cpukit/score/cpu/i386/ChangeLog @@ -1,3 +1,7 @@ +2007-12-17 Joel Sherrill + + * rtems/score/cpu.h: Add _CPU_Context_Get_SP() for stack check utility. + 2007-12-17 Joel Sherrill * rtems/score/idtr.h: Sweep to make sure grep for COPYRIGHT passes. diff --git a/cpukit/score/cpu/i386/rtems/score/cpu.h b/cpukit/score/cpu/i386/rtems/score/cpu.h index 616d1dfb58..812b2f569b 100644 --- a/cpukit/score/cpu/i386/rtems/score/cpu.h +++ b/cpukit/score/cpu/i386/rtems/score/cpu.h @@ -107,6 +107,9 @@ typedef struct { uint32_t edi; /* extended destination index flags register */ } Context_Control; +#define _CPU_Context_Get_SP( _context ) \ + (_context)->esp + /* * FP context save area for the i387 numeric coprocessors. */ -- cgit v1.2.3