diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-02-28 14:23:20 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-02-28 14:23:20 +0000 |
commit | 9b3717cd9d4d3bfbc81d4ba8373f92a0117676d7 (patch) | |
tree | 3134412090763e26559f8bfd1b63d3f90a3dece0 /nuttx/arch/z80/src/ez80 | |
parent | 1e65cbebb8074b4213a3b707b76649493770948b (diff) | |
download | px4-nuttx-9b3717cd9d4d3bfbc81d4ba8373f92a0117676d7.tar.gz px4-nuttx-9b3717cd9d4d3bfbc81d4ba8373f92a0117676d7.tar.bz2 px4-nuttx-9b3717cd9d4d3bfbc81d4ba8373f92a0117676d7.zip |
Fix signal-related compilation errors
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1533 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/z80/src/ez80')
-rw-r--r-- | nuttx/arch/z80/src/ez80/ez80_sigdeliver.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/nuttx/arch/z80/src/ez80/ez80_sigdeliver.c b/nuttx/arch/z80/src/ez80/ez80_sigdeliver.c index 8a8d1ab2a..5e9706d15 100644 --- a/nuttx/arch/z80/src/ez80/ez80_sigdeliver.c +++ b/nuttx/arch/z80/src/ez80/ez80_sigdeliver.c @@ -45,6 +45,7 @@ #include <nuttx/irq.h> #include <nuttx/arch.h> +#include <arch/board/board.h> #include "chip/switch.h" #include "os_internal.h" @@ -83,7 +84,7 @@ void up_sigdeliver(void) { #ifndef CONFIG_DISABLE_SIGNALS FAR _TCB *rtcb = (_TCB*)g_readytorun.head; - chipret_t regs[XCPTCONTEXT_REGS]; + chipreg_t regs[XCPTCONTEXT_REGS]; sig_deliver_t sigdeliver; /* Save the errno. This must be preserved throughout the signal handling @@ -101,7 +102,7 @@ void up_sigdeliver(void) /* Save the real return state on the stack. */ - z80_copystate(regs, rtcb->xcp.regs); + ez80_copystate(regs, rtcb->xcp.regs); regs[XCPT_PC] = rtcb->xcp.saved_pc; regs[XCPT_I] = rtcb->xcp.saved_i; @@ -134,7 +135,7 @@ void up_sigdeliver(void) */ up_ledoff(LED_SIGNAL); - z80_restoreusercontext(regs); + ez80_restorecontext(regs); #endif } |