diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1998-04-27 15:28:43 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1998-04-27 15:28:43 +0000 |
commit | 0153d180b366113420629d29a36a684cba5bceb9 (patch) | |
tree | 1c4dc615f85932610ad6603c575ae2b729489676 /c | |
parent | Cosmetic fix from Eric Norum: (diff) | |
download | rtems-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')
-rw-r--r-- | c/src/exec/score/cpu/m68k/cpu_asm.s | 14 |
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 |