summaryrefslogtreecommitdiff
path: root/Source/portable/GCC/ColdFire_V2/portasm.S
diff options
context:
space:
mode:
Diffstat (limited to 'Source/portable/GCC/ColdFire_V2/portasm.S')
-rw-r--r--Source/portable/GCC/ColdFire_V2/portasm.S14
1 files changed, 10 insertions, 4 deletions
diff --git a/Source/portable/GCC/ColdFire_V2/portasm.S b/Source/portable/GCC/ColdFire_V2/portasm.S
index a80f3bd5..7229c52c 100644
--- a/Source/portable/GCC/ColdFire_V2/portasm.S
+++ b/Source/portable/GCC/ColdFire_V2/portasm.S
@@ -9,8 +9,8 @@
*/
.global ulPortSetIPL
+ .global mcf5xxx_wr_cacr
.global __cs3_isr_interrupt_127
- .global __cs3_isr_interrupt_119
.global vPortStartFirstTask
.text
@@ -25,9 +25,8 @@
.endm
.macro portRESTORE_CONTEXT
-
- move.l pxCurrentTCB, %sp
- move.l (%sp), %sp
+ move.l pxCurrentTCB, %a0
+ move.l (%a0), %sp
movem.l (%sp), %d0-%fp
lea.l %sp@(60), %sp
rte
@@ -67,6 +66,13 @@ ulPortSetIPL:
lea 8(SP),SP
unlk A6
rts
+/********************************************************************/
+
+mcf5xxx_wr_cacr:
+ move.l 4(sp),d0
+ .long 0x4e7b0002 /* movec d0,cacr */
+ nop
+ rts
/********************************************************************/