]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] i386: Fix UP gdt bugs
authorJeremy Fitzhardinge <jeremy@goop.org>
Wed, 2 May 2007 17:27:16 +0000 (19:27 +0200)
committerAndi Kleen <andi@basil.nowhere.org>
Wed, 2 May 2007 17:27:16 +0000 (19:27 +0200)
commitf717680f2ad2f8c4579a545d98b3f4b76b262211
tree8f317bf2494b6b4bceb5e6d1ee35fabc0eeb9971
parent5d6643d0c2de4a93061478fa993b50f485a4de76
[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