7 #include <asm/thread_info.h>
35 #if defined(MACH_ATARI_ONLY)
37 #define ALLOWINT (~0x500)
40 #define ALLOWINT (~0x700)
50 #define SWITCH_STACK_SIZE (6*4+4)
52 #ifdef CONFIG_COLDFIRE
53 #ifdef CONFIG_COLDFIRE_SW_A7
77 movel %
a0@-,%
sp@(PT_OFF_PC)
78 movel %
a0@-,%
sp@(PT_OFF_FORMATVEC)
85 moveml %
d1-%d5/%
a0-%
a2,%sp@
92 movel %
d0,%sp@(PT_OFF_ORIG_D0)
98 movel %sp@(PT_OFF_PC),%
a0@-
99 movel %sp@(PT_OFF_FORMATVEC),%
a0@-
100 moveml %sp@,%
d1-%d5/%
a0-%a2
131 moveml %
d1-%d5/%
a0-%a2,%sp@
140 moveml %
d1-%d5/%
a0-%
a2,%sp@
144 moveml %sp@,%
d1-%d5/%
a0-%a2
164 .macro SAVE_SWITCH_STACK
166 moveml %
a3-%
a6/%d6-%d7,%sp@
169 .macro RESTORE_SWITCH_STACK
170 moveml %sp@,%
a3-%
a6/%d6-%d7
189 moveml %
d1-%d5/%
a0-%a2,%sp@-
196 moveml %
d1-%d5/%
a0-%a2,%sp@-
200 moveml %sp@+,%
a0-%a2/%
d1-%d5
208 .macro SAVE_SWITCH_STACK
209 moveml %
a3-%
a6/%d6-%d7,%sp@-
212 .macro RESTORE_SWITCH_STACK
213 moveml %sp@+,%
a3-%
a6/%d6-%d7
230 andl
#-THREAD_SIZE,\reg
232 movel %curptr@,%curptr
237 #define GET_CURRENT(tmp)
243 #define STR(X) STR1(X)
246 #define SAVE_ALL_INT \
249 "movel %%d0,%%sp@-;" \
250 "moveml %%d1-%%d5/%%a0-%%a2,%%sp@-"
252 #define GET_CURRENT(tmp) \
253 "movel %%sp,"#tmp"\n\t" \
254 "andw #-"STR(THREAD_SIZE)","#tmp"\n\t" \
255 "movel "#tmp",%%a2\n\t" \