diff options
Diffstat (limited to 'nuttx/arch/pjrc-8051/src/up_restorecontext.c')
-rw-r--r-- | nuttx/arch/pjrc-8051/src/up_restorecontext.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nuttx/arch/pjrc-8051/src/up_restorecontext.c b/nuttx/arch/pjrc-8051/src/up_restorecontext.c index bdb2fea24..fa7c8c2d0 100644 --- a/nuttx/arch/pjrc-8051/src/up_restorecontext.c +++ b/nuttx/arch/pjrc-8051/src/up_restorecontext.c @@ -37,6 +37,7 @@ * Included Files **************************************************************************/ +#include <nuttx/config.h> #include <nuttx/irq.h> #include "up_internal.h" @@ -260,7 +261,7 @@ void up_restorecontext(FAR struct xcptcontext *context) __naked #endif /* Get the pointer to the register save area */ - mov a, #FRAME_SIZE + mov a, #STACK_SIZE add a, dpl mov dpl, a clr a |