From: H. Peter Anvin Date: Wed, 30 Jan 2008 12:33:04 +0000 (+0100) Subject: x86 setup: correct the base in the GDT_ENTRY() macro X-Git-Tag: v2.6.25-rc1~1143^2~323 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=387faedb1dee2e917811acd05902cc36142a4850;p=platform%2Fkernel%2Flinux-3.10.git x86 setup: correct the base in the GDT_ENTRY() macro The GDT_ENTRY() macro in pm.c would incorrectly cut the bottom 8 bits off the base. We didn't define any bases with the bottom 8 bits nonzero, so it is a non-manifest bug, but it's still a bug. Pointed out by John Smith . Cc: John Smith Signed-off-by: H. Peter Anvin Signed-off-by: Ingo Molnar Signed-off-by: Thomas Gleixner --- diff --git a/arch/x86/boot/pm.c b/arch/x86/boot/pm.c index b23cbdc7..1a0f936 100644 --- a/arch/x86/boot/pm.c +++ b/arch/x86/boot/pm.c @@ -104,7 +104,7 @@ static void reset_coprocessor(void) (((u64)(base & 0xff000000) << 32) | \ ((u64)flags << 40) | \ ((u64)(limit & 0x00ff0000) << 32) | \ - ((u64)(base & 0x00ffff00) << 16) | \ + ((u64)(base & 0x00ffffff) << 16) | \ ((u64)(limit & 0x0000ffff))) struct gdt_ptr {