diff options
author | Till Straumann <strauman@slac.stanford.edu> | 2009-10-20 14:51:37 +0000 |
---|---|---|
committer | Till Straumann <strauman@slac.stanford.edu> | 2009-10-20 14:51:37 +0000 |
commit | 020363de10aa687f7d14e61b6873c49f7187d009 (patch) | |
tree | d1f35e3b4dbf43c5c1bda6d02dbe87e1900e88b2 /cpukit/score/cpu/i386/rtems/score/cpu.h | |
parent | 2009-10-20 Till Straumann <strauman@slac.stanford.edu> (diff) | |
download | rtems-020363de10aa687f7d14e61b6873c49f7187d009.tar.bz2 |
2009-10-20 Till Straumann <strauman@slac.stanford.edu>
* score/cpu/i386/cpu.c, score/cpu/i386/cpu.h: let the default
exception handler print a stack trace.
Diffstat (limited to '')
-rw-r--r-- | cpukit/score/cpu/i386/rtems/score/cpu.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpukit/score/cpu/i386/rtems/score/cpu.h b/cpukit/score/cpu/i386/rtems/score/cpu.h index e4ef9efbc3..d91a9474f1 100644 --- a/cpukit/score/cpu/i386/rtems/score/cpu.h +++ b/cpukit/score/cpu/i386/rtems/score/cpu.h @@ -300,10 +300,10 @@ uint32_t _CPU_ISR_Get_level( void ); if ( (_isr) ) (_the_context)->eflags = CPU_EFLAGS_INTERRUPTS_OFF; \ else (_the_context)->eflags = CPU_EFLAGS_INTERRUPTS_ON; \ \ - _stack = ((uint32_t)(_stack_base)) + (_size) - 4; \ + _stack = ((uint32_t)(_stack_base)) + (_size) - sizeof(proc_ptr*); \ \ *((proc_ptr *)(_stack)) = (_entry_point); \ - (_the_context)->ebp = (void *) _stack; \ + (_the_context)->ebp = (void *) 0; \ (_the_context)->esp = (void *) _stack; \ } while (0) |