[U-Boot] [PATCH 12/48] x86: Tidy up the 64-bit calling code
Bin Meng
bmeng.cn at gmail.com
Thu Jul 23 06:18:56 CEST 2015
On Wed, Jul 22, 2015 at 11:49 PM, Simon Glass <sjg at chromium.org> wrote:
> The GDT works but technically the length is incorrect. Fix this and add a
> comment.
>
> Signed-off-by: Simon Glass <sjg at chromium.org>
> ---
>
> arch/x86/cpu/call64.S | 4 ++--
> 1 file 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 */
> --
Reviewed-by: Bin Meng <bmeng.cn at gmail.com>
More information about the U-Boot
mailing list