]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
x86: Fix GDT limit in start16.S
authorBin Meng <bmeng.cn@gmail.com>
Thu, 16 Oct 2014 14:58:35 +0000 (22:58 +0800)
committerSimon Glass <sjg@chromium.org>
Wed, 22 Oct 2014 15:03:07 +0000 (09:03 -0600)
GDT limit should be one less than an integral multiple of eight.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Acked-by: Simon Glass <sjg@chromium.org>
arch/x86/cpu/start16.S

index 8b9b327cd48734fbd50b71dbe3d6a238151d7074..6968fda6494998d1d595c9862e64a10a8082a3e1 100644 (file)
@@ -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... */