Patch from Chris Johns to filter out the trace bit on CPU models

which have hardware support for a separate interrupt stack.
This commit is contained in:
Joel Sherrill
1997-11-29 17:51:27 +00:00
parent 61fc72c9dc
commit 80868140c3

View File

@@ -198,11 +198,14 @@ bframe: clrl SYM (_ISR_Signals_to_thread_executing)
movec msp,a0 | a0 = master stack pointer
movew #0,a0@- | push format word
movel # SYM (_ISR_Dispatch),a0@- | push return addr
movew a0@(6+SR_OFFSET),a0@- | push thread sr
| 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
movec a0,msp | set master stack pointer
#else
| filter out the trace bit to stop single step debugging breaking
| filter out the trace bit to stop single step debugging breaking
movew a7@(16+SR_OFFSET),d0
andw #0x7FFF,d0
movew d0,sr