From 0153d180b366113420629d29a36a684cba5bceb9 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Mon, 27 Apr 1998 15:28:43 +0000 Subject: Fixed trace bit manipulation per requests from Eric Norum and Chris Johns. Actual patch was from Eric Norum. --- c/src/exec/score/cpu/m68k/cpu_asm.s | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) (limited to 'c/src/exec') 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 -- cgit v1.2.3