[PATCH] i386: Fix UP gdt bugs
commitc5413fbe894924ddb8aa474a4d4da52e7a6c7e0b
authorJeremy Fitzhardinge <jeremy@goop.org>
Wed, 2 May 2007 17:27:16 +0000 (2 19:27 +0200)
committerAndi Kleen <andi@basil.nowhere.org>
Wed, 2 May 2007 17:27:16 +0000 (2 19:27 +0200)
tree8f317bf2494b6b4bceb5e6d1ee35fabc0eeb9971
parent1956c73bb5bf81ee577ed7d3c64e3cad876ad2a5
[PATCH] i386: Fix UP gdt bugs

Fixes two problems with the GDT when compiling for uniprocessor:
 - There's no percpu segment, so trying to load its selector into %fs fails.
   Use a null selector instead.
 - The real gdt needs to be loaded at some point.  Do it in cpu_init().

Signed-off-by: Chris Wright <chrisw@sous-sol.org>
Signed-off-by: Jeremy Fitzhardinge <jeremy@xensource.com>
Signed-off-by: Andi Kleen <ak@suse.de>
Cc: Rusty Russell <rusty@rustcorp.com.au>
arch/i386/kernel/cpu/common.c
arch/i386/kernel/smpboot.c
include/asm-i386/processor.h
include/asm-i386/segment.h