summaryrefslogtreecommitdiff
path: root/nuttx/arch/avr/src
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2010-11-05 03:48:09 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2010-11-05 03:48:09 +0000
commit419defa13318a3ef02b05e1b8925f0aab081fd6f (patch)
treeb0733c649385a97b7a78f28871c3170def36f45f /nuttx/arch/avr/src
parent553a6de16c1865d6c4c75f4df2b885e10555f4d9 (diff)
downloadpx4-nuttx-419defa13318a3ef02b05e1b8925f0aab081fd6f.tar.gz
px4-nuttx-419defa13318a3ef02b05e1b8925f0aab081fd6f.tar.bz2
px4-nuttx-419defa13318a3ef02b05e1b8925f0aab081fd6f.zip
The AVR32 port now passes the OS test
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3075 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/avr/src')
-rw-r--r--nuttx/arch/avr/src/avr32/up_schedulesigaction.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nuttx/arch/avr/src/avr32/up_schedulesigaction.c b/nuttx/arch/avr/src/avr32/up_schedulesigaction.c
index 63bc9f1b9..d56bb1e51 100644
--- a/nuttx/arch/avr/src/avr32/up_schedulesigaction.c
+++ b/nuttx/arch/avr/src/avr32/up_schedulesigaction.c
@@ -186,8 +186,8 @@ void up_schedule_sigaction(_TCB *tcb, sig_deliver_t sigdeliver)
*/
tcb->xcp.sigdeliver = sigdeliver;
- tcb->xcp.saved_pc = current_regs[REG_PC];
- tcb->xcp.saved_sr = current_regs[REG_SR];
+ tcb->xcp.saved_pc = tcb->xcp.regs[REG_PC];
+ tcb->xcp.saved_sr = tcb->xcp.regs[REG_SR];
/* Then set up to vector to the trampoline with interrupts
* disabled