mirror of
https://xff.cz/git/u-boot/
synced 2025-09-02 09:12:08 +02:00
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>
This commit is contained in:
@@ -82,8 +82,8 @@ lret_target:
|
|||||||
|
|
||||||
.data
|
.data
|
||||||
gdt:
|
gdt:
|
||||||
.word gdt_end - gdt
|
.word gdt_end - gdt - 1
|
||||||
.long gdt
|
.long gdt /* Fixed up by code above */
|
||||||
.word 0
|
.word 0
|
||||||
.quad 0x0000000000000000 /* NULL descriptor */
|
.quad 0x0000000000000000 /* NULL descriptor */
|
||||||
.quad 0x00af9a000000ffff /* __KERNEL_CS */
|
.quad 0x00af9a000000ffff /* __KERNEL_CS */
|
||||||
|
Reference in New Issue
Block a user