summaryrefslogtreecommitdiffstats
path: root/c/src/exec
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1998-04-27 15:28:43 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1998-04-27 15:28:43 +0000
commit0153d180b366113420629d29a36a684cba5bceb9 (patch)
tree1c4dc615f85932610ad6603c575ae2b729489676 /c/src/exec
parentCosmetic fix from Eric Norum: (diff)
downloadrtems-0153d180b366113420629d29a36a684cba5bceb9.tar.bz2
Fixed trace bit manipulation per requests from Eric Norum and Chris Johns.
Actual patch was from Eric Norum.
Diffstat (limited to 'c/src/exec')
-rw-r--r--c/src/exec/score/cpu/m68k/cpu_asm.s14
1 files changed, 3 insertions, 11 deletions
diff --git a/c/src/exec/score/cpu/m68k/cpu_asm.s b/c/src/exec/score/cpu/m68k/cpu_asm.s
index 8ff40d1f56..d9806add50 100644
--- a/c/src/exec/score/cpu/m68k/cpu_asm.s
+++ b/c/src/exec/score/cpu/m68k/cpu_asm.s
@@ -208,19 +208,11 @@ bframe: clrl SYM (_ISR_Signals_to_thread_executing)
#if ( M68K_HAS_SEPARATE_STACKS == 1 )
movec msp,a0 | a0 = master stack pointer
movew #0,a0@- | push format word
- movel # SYM (_ISR_Dispatch),a0@- | push return addr
- | filter out the trace bit to stop single step debugging breaking
- movew a0@(6+SR_OFFSET),d0
- andw #0x7FFF,d0
- movew d0,a0@- | push thread sr
+ movel #SYM(_ISR_Dispatch),a0@- | push return addr
+ movew sr,a0@- | push existing sr
movec a0,msp | set master stack pointer
#else
-
- | filter out the trace bit to stop single step debugging breaking
- movew a7@(16+SR_OFFSET),d0
- andw #0x7FFF,d0
- movew d0,sr
- jsr SYM (_Thread_Dispatch)
+ jsr SYM (_Thread_Dispatch) | Perform context switch
#endif
exit: moveml a7@+,d0-d1/a0-a1 | restore d0-d1,a0-a1