summaryrefslogtreecommitdiff
path: root/arch/x86/cpu/call64.S
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2015-07-31 15:31:30 (GMT)
committerSimon Glass <sjg@chromium.org>2015-08-05 14:42:41 (GMT)
commit0bc74ab3e694643cb070ed055964fa2a73d300af (patch)
tree3de060f74c9fb3077bb57fbb405a862574f56832 /arch/x86/cpu/call64.S
parent0d9edd2dfb29c2a8c7b7ef5f40bb3a51d6ac0c15 (diff)
downloadu-boot-fsl-qoriq-0bc74ab3e694643cb070ed055964fa2a73d300af.tar.xz
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/cpu/call64.S')
-rw-r--r--arch/x86/cpu/call64.S4
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 */