patch-1.3.38 linux/arch/i386/kernel/entry.S

Next file: linux/arch/i386/kernel/head.S
Previous file: linux/arch/i386/kernel/Makefile
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.37/linux/arch/i386/kernel/entry.S linux/arch/i386/kernel/entry.S
@@ -41,7 +41,6 @@
  */
 
 #include <linux/sys.h>
-#include <linux/config.h>
 #include <linux/linkage.h>
 #include <asm/segment.h>
 #define ASSEMBLY
@@ -105,7 +104,7 @@
 	movl $(USER_DS),%edx; \
 	mov %dx,%fs;
 
-#ifdef	CONFIG_SMP
+#ifdef	__SMP__
 
 #define GET_PROCESSOR_ID \
 	movl SYMBOL_NAME(apic_reg), %edx; \
@@ -230,7 +229,7 @@
 	pushfl			# We get a different stack layout with call gates,
 	pushl %eax		# which has to be cleaned up later..
 	SAVE_ALL
-#ifdef CONFIG_SMP
+#ifdef __SMP__
 	ENTER_KERNEL
 #endif
 	movl EIP(%esp),%eax	# due to call gates, this is eflags, not eip..
@@ -240,7 +239,7 @@
 	movl %edx,EIP(%esp)	# Now we move them to their "normal" places
 	movl %ecx,CS(%esp)	#
 	movl %esp,%eax
-#ifdef CONFIG_SMP
+#ifdef __SMP__
 	GET_PROCESSOR_OFFSET(%edx)	# Processor offset into edx
 	movl SYMBOL_NAME(current_set)(,%edx),%edx
 #else
@@ -270,7 +269,7 @@
 ENTRY(system_call)
 	pushl %eax			# save orig_eax
 	SAVE_ALL
-#ifdef CONFIG_SMP
+#ifdef __SMP__
 	ENTER_KERNEL
 #endif
 	movl $-ENOSYS,EAX(%esp)
@@ -279,7 +278,7 @@
 	movl SYMBOL_NAME(sys_call_table)(,%eax,4),%eax
 	testl %eax,%eax
 	je ret_from_sys_call
-#ifdef CONFIG_SMP
+#ifdef __SMP__
 	GET_PROCESSOR_OFFSET(%edx)
 	movl SYMBOL_NAME(current_set)(,%edx),%ebx
 #else
@@ -304,7 +303,7 @@
 	movl ORIG_EAX(%esp),%eax
 	call SYMBOL_NAME(sys_call_table)(,%eax,4)
 	movl %eax,EAX(%esp)		# save the return value
-#ifdef CONFIG_SMP
+#ifdef __SMP__
 	GET_PROCESSOR_OFFSET(%eax)
 	movl SYMBOL_NAME(current_set)(,%eax),%eax
 #else
@@ -336,7 +335,7 @@
 	movl %eax,EFLAGS(%esp)		# stupid
 	cmpl $0,SYMBOL_NAME(need_resched)
 	jne reschedule
-#ifdef CONFIG_SMP
+#ifdef __SMP__
 	GET_PROCESSOR_OFFSET(%eax)
 	movl SYMBOL_NAME(current_set)(,%eax), %eax
 #else
@@ -407,11 +406,11 @@
 	mov %dx,%es
 	movl $(USER_DS),%edx
 	mov %dx,%fs
-#ifdef CONFIG_SMP
+#ifdef __SMP__
 	ENTER_KERNEL
 #endif
 	pushl %eax
-#ifdef CONFIG_SMP
+#ifdef __SMP__
 	GET_PROCESSOR_OFFSET(%eax)
 	movl SYMBOL_NAME(current_set)(,%eax), %eax
 #else
@@ -432,7 +431,7 @@
 ENTRY(device_not_available)
 	pushl $-1		# mark this as an int
 	SAVE_ALL
-#ifdef CONFIG_SMP
+#ifdef __SMP__
 	ENTER_KERNEL
 #endif
 	pushl $ret_from_sys_call

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this