patch-2.3.42 linux/include/asm-m68k/entry.h

Next file: linux/include/asm-m68k/init.h
Previous file: linux/include/asm-m68k/checksum.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.41/linux/include/asm-m68k/entry.h linux/include/asm-m68k/entry.h
@@ -4,9 +4,6 @@
 #include <linux/config.h>
 #include <asm/setup.h>
 #include <asm/page.h>
-#ifdef CONFIG_KGDB
-#include <asm/kgdb.h>
-#endif
 
 /*
  * Stack layout in 'ret_from_exception':
@@ -69,7 +66,7 @@
  * regs a3-a6 and d6-d7 are preserved by C code
  * the kernel doesn't mess with usp unless it needs to
  */
-#ifndef CONFIG_KGDB
+
 /*
  * a -1 in the orig_d0 field signifies
  * that the stack frame is NOT for syscall
@@ -87,27 +84,6 @@
 	movel	%d0,%sp@-	| d0
 	moveml	%d1-%d5/%a0-%a1/%curptr,%sp@-
 .endm
-#else
-/* Need to save the "missing" registers for kgdb...
- */
-.macro	save_all_int
-	clrl	%sp@-		| stk_adj
-	pea	-1:w		| orig d0
-	movel	%d0,%sp@-	| d0
-	moveml	%d1-%d5/%a0-%a1/%curptr,%sp@-
-	moveml	%d6-%d7,kgdb_registers+GDBOFFA_D6
-	moveml	%a3-%a6,kgdb_registers+GDBOFFA_A3
-.endm
-
-.macro	save_all_sys
-	clrl	%sp@-		| stk_adj
-	movel	%d0,%sp@-	| orig d0
-	movel	%d0,%sp@-	| d0
-	moveml	%d1-%d5/%a0-%a1/%curptr,%sp@-
-	moveml	%d6-%d7,kgdb_registers+GDBOFFA_D6
-	moveml	%a3-%a6,kgdb_registers+GDBOFFA_A3
-.endm
-#endif
 
 .macro	restore_all
 	moveml	%sp@+,%a0-%a1/%curptr/%d1-%d5
@@ -145,21 +121,11 @@
 #define PT_OFF_ORIG_D0	 0x24
 #define PT_OFF_FORMATVEC 0x32
 #define PT_OFF_SR	 0x2C
-#ifndef CONFIG_KGDB
 #define SAVE_ALL_INT				\
 	"clrl	%%sp@-;"    /* stk_adj */	\
 	"pea	-1:w;"	    /* orig d0 = -1 */	\
 	"movel	%%d0,%%sp@-;" /* d0 */		\
 	"moveml	%%d1-%%d5/%%a0-%%a2,%%sp@-"
-#else
-#define SAVE_ALL_INT				\
-	"clrl	%%sp@-\n\t" /* stk_adj */	\
-	"pea	-1:w\n\t"   /* orig d0 = -1 */	\
-	"movel	%%d0,%%sp@-\n\t" /* d0 */	\
-	"moveml	%%d1-%%d5/%%a0-%%a2,%%sp@-\n\t"	\
-	"moveml	%%d6-%%d7,kgdb_registers+"STR(GDBOFFA_D6)"\n\t" \
-	"moveml	%%a3-%%a6,kgdb_registers+"STR(GDBOFFA_A3)
-#endif
 #define GET_CURRENT(tmp) \
 	"movel	%%sp,"#tmp"\n\t" \
 	"andw	#-"STR(KTHREAD_SIZE)","#tmp"\n\t" \

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)