From: Bin Meng Date: Thu, 16 Oct 2014 14:58:35 +0000 (+0800) Subject: x86: Fix GDT limit in start16.S X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=35d4fed320d577a4446531d7b9350ce40065c4b0;p=u-boot.git x86: Fix GDT limit in start16.S GDT limit should be one less than an integral multiple of eight. Signed-off-by: Bin Meng Acked-by: Simon Glass --- diff --git a/arch/x86/cpu/start16.S b/arch/x86/cpu/start16.S index 8b9b327cd4..6968fda649 100644 --- a/arch/x86/cpu/start16.S +++ b/arch/x86/cpu/start16.S @@ -70,7 +70,7 @@ idt_ptr: * GDT is setup in a safe location in RAM */ gdt_ptr: - .word 0x20 /* limit (32 bytes = 4 GDT entries) */ + .word 0x1f /* limit (31 bytes = 4 GDT entries - 1) */ .long BOOT_SEG + gdt /* base */ /* Some CPUs are picky about GDT alignment... */