소스 검색

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>
Simon Glass 9 년 전
부모
커밋
0bc74ab3e6
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      arch/x86/cpu/call64.S

+ 2 - 2
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 */