patch-2.3.20 linux/arch/i386/kernel/head.S

Next file: linux/arch/i386/kernel/i386_ksyms.c
Previous file: linux/arch/i386/kernel/entry.S
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.19/linux/arch/i386/kernel/head.S linux/arch/i386/kernel/head.S
@@ -243,6 +243,15 @@
 	xorl %eax,%eax
 	lldt %ax
 	cld			# gcc2 wants the direction flag cleared at all times
+#ifdef __SMP__
+	movb ready, %cl	
+	cmpb $1,%cl
+	je 1f			# the first CPU calls start_kernel
+				# all other CPUs call initialize_secondary
+	call SYMBOL_NAME(initialize_secondary)
+	jmp L6
+1:
+#endif
 	call SYMBOL_NAME(start_kernel)
 L6:
 	jmp L6			# main should never return here, but

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