Skip to content

Commit

Permalink
x86: use initial_code for i386
Browse files Browse the repository at this point in the history
x86_64 jumps to whatever is written in "initial_code" symbol,
instead of a fixed address. Do it for i386 too. It will allow us
to integrate more of the smp boot code.

Signed-off-by: Glauber Costa <gcosta@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Glauber Costa authored and Ingo Molnar committed Jul 8, 2008
1 parent a939098 commit e3f77ed
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion arch/x86/kernel/head_32.S
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,10 @@ is386: movl $2,%ecx # set MP
jmp initialize_secondary # all other CPUs call initialize_secondary
1:
#endif /* CONFIG_SMP */
jmp i386_start_kernel
jmp *(initial_code)
.align 4
ENTRY(initial_code)
.long i386_start_kernel

/*
* We depend on ET to be correct. This checks for 287/387.
Expand Down

0 comments on commit e3f77ed

Please sign in to comment.