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

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

diff -u --recursive --new-file v2.3.16/linux/include/asm-m68k/entry.h linux/include/asm-m68k/entry.h
@@ -3,6 +3,7 @@
 
 #include <linux/config.h>
 #include <asm/setup.h>
+#include <asm/page.h>
 #ifdef CONFIG_KGDB
 #include <asm/kgdb.h>
 #endif
@@ -132,7 +133,7 @@
 
 .macro	get_current reg=%d0
 	movel	%sp,\reg
-	andw	#-8192,\reg
+	andw	#-KTHREAD_SIZE,\reg
 	movel	\reg,%curptr
 .endm
 
@@ -161,7 +162,7 @@
 #endif
 #define GET_CURRENT(tmp) \
 	"movel	%%sp,"#tmp"\n\t" \
-	"andw	#-8192,"#tmp"\n\t" \
+	"andw	#-KTHREAD_SIZE,"#tmp"\n\t" \
 	"movel	"#tmp",%%a2"
 
 #endif

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