diff options
author | Simon Glass <sjg@chromium.org> | 2015-07-31 09:31:30 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2015-08-05 08:42:41 -0600 |
commit | 0bc74ab3e694643cb070ed055964fa2a73d300af (patch) | |
tree | 3de060f74c9fb3077bb57fbb405a862574f56832 /arch/x86 | |
parent | 0d9edd2dfb29c2a8c7b7ef5f40bb3a51d6ac0c15 (diff) | |
download | u-boot-imx-0bc74ab3e694643cb070ed055964fa2a73d300af.zip u-boot-imx-0bc74ab3e694643cb070ed055964fa2a73d300af.tar.gz u-boot-imx-0bc74ab3e694643cb070ed055964fa2a73d300af.tar.bz2 |
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 <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'arch/x86')
-rw-r--r-- | arch/x86/cpu/call64.S | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/cpu/call64.S b/arch/x86/cpu/call64.S index 74dd5a8..08dc473 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 */ |