Skip to content

Commit

Permalink
[PATCH] x86-64: Don't assume APIC for boot processor has an APIC ID o…
Browse files Browse the repository at this point in the history
…f zero

Originally from Stuart Hayes.

When setting up the APIC for the Uniprocessor kernel don't
assume the CPU has an APIC ID of zero.

This fixes boot with the UP kernel on Dell PowerEdge 6800/6850 4way systems.

Cc: Stuart.Hayes@dell.com

Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Andi Kleen authored and Linus Torvalds committed Sep 12, 2005
1 parent df0cc26 commit 357e11d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86_64/kernel/apic.c
Original file line number Diff line number Diff line change
Expand Up @@ -1051,7 +1051,7 @@ int __init APIC_init_uniprocessor (void)

connect_bsp_APIC();

phys_cpu_present_map = physid_mask_of_physid(0);
phys_cpu_present_map = physid_mask_of_physid(boot_cpu_id);
apic_write_around(APIC_ID, boot_cpu_id);

setup_local_APIC();
Expand Down

0 comments on commit 357e11d

Please sign in to comment.