From: Simon Glass Date: Fri, 31 Jul 2015 15:31:30 +0000 (-0600) Subject: x86: Tidy up the 64-bit calling code X-Git-Tag: v2015.10-rc2~410^2~46 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=0bc74ab3e694643cb070ed055964fa2a73d300af;p=oweals%2Fu-boot.git x86: Tidy up the 64-bit calling code The GDT works but technically the length is incorrect. Fix this and add a comment. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- diff --git a/arch/x86/cpu/call64.S b/arch/x86/cpu/call64.S index 74dd5a89dc..08dc473d6a 100644 --- a/arch/x86/cpu/call64.S +++ b/arch/x86/cpu/call64.S @@ -82,8 +82,8 @@ lret_target: .data gdt: - .word gdt_end - gdt - .long gdt + .word gdt_end - gdt - 1 + .long gdt /* Fixed up by code above */ .word 0 .quad 0x0000000000000000 /* NULL descriptor */ .quad 0x00af9a000000ffff /* __KERNEL_CS */