diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-10-18 01:51:47 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-10-18 01:51:47 +0000 |
commit | 35a59d4d02a5a09f8e4384352e38ae3f80134100 (patch) | |
tree | 79728179d0640cfebf35030fd7a369bb4ec2494b /nuttx/arch/mips/src/pic32mx/pic32mx-head.S | |
parent | 225165e72cdd19b741bac642d2bddce9882c50d5 (diff) | |
download | nuttx-35a59d4d02a5a09f8e4384352e38ae3f80134100.tar.gz nuttx-35a59d4d02a5a09f8e4384352e38ae3f80134100.tar.bz2 nuttx-35a59d4d02a5a09f8e4384352e38ae3f80134100.zip |
Fix PIC32 jalr instructions: arguments consistentley reversed
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4052 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/mips/src/pic32mx/pic32mx-head.S')
-rw-r--r-- | nuttx/arch/mips/src/pic32mx/pic32mx-head.S | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/nuttx/arch/mips/src/pic32mx/pic32mx-head.S b/nuttx/arch/mips/src/pic32mx/pic32mx-head.S index 065598ec6..3a9c6c0e0 100644 --- a/nuttx/arch/mips/src/pic32mx/pic32mx-head.S +++ b/nuttx/arch/mips/src/pic32mx/pic32mx-head.S @@ -434,7 +434,7 @@ _bev_handler: move a0, sp /* Pass register save structure as the parameter 1 */ USE_INTSTACK t0, t1, t2 /* Switch to the interrupt stack */ la t0, pic32mx_dobev /* Call up_dobev(regs) */ - jalr t0, ra + jalr ra, t0 di /* Disable interrupts */ RESTORE_STACK t0, t1 /* Undo the operations of USE_STACK */ EXCPT_EPILOGUE v0 /* Return to the context returned by up_dobev() */ @@ -456,7 +456,7 @@ _int_handler: move a0, sp /* Pass register save structure as the parameter 1 */ USE_INTSTACK t0, t1, t2 /* Switch to the interrupt stack */ la t0, pic32mx_decodeirq /* Call pic32mx_decodeirq(regs) */ - jalr t0, ra + jalr ra, t0 di /* Disable interrupts */ RESTORE_STACK t0, t1 /* Undo the operations of USE_STACK */ EXCPT_EPILOGUE v0 /* Return to the context returned by pic32mx_decodeirq() */ @@ -479,7 +479,7 @@ _nmi_handler: move a0, sp /* Pass register save structure as the parameter 1 */ USE_INTSTACK t0, t1, t2 /* Switch to the interrupt stack */ la t0, pic32mx_donmi /* Call up_donmi(regs) */ - jalr t0, ra + jalr ra, t0 di /* Disable interrupts */ RESTORE_STACK t0, t1 /* Undo the operations of USE_STACK */ EXCPT_EPILOGUE v0 /* Return to the context returned by pic32mx_donmi() */ @@ -505,13 +505,13 @@ __start_nuttx: /* Perform low level initialization */ la t0, pic32mx_lowinit - jalr t0, ra + jalr ra, t0 nop /* Call os_start */ la t0, os_start - jalr t0, ra + jalr ra, t0 nop /* Just in case main returns, go into an infinite loop */ |