Re: [PATCH] x86/asm/head/64: Use __BOOT_TSS instead of literal 0x20

From: Steven Rostedt
Date: Wed Apr 01 2015 - 13:01:50 EST


On Wed, 1 Apr 2015 16:50:58 +0200
Denys Vlasenko <dvlasenk@xxxxxxxxxx> wrote:

> No code changes.
>


> diff --git a/arch/x86/boot/compressed/head_64.S b/arch/x86/boot/compressed/head_64.S
> index 90c1521..b0c0d16 100644
> --- a/arch/x86/boot/compressed/head_64.S
> +++ b/arch/x86/boot/compressed/head_64.S
> @@ -165,7 +165,7 @@ ENTRY(startup_32)
> /* After gdt is loaded */
> xorl %eax, %eax
> lldt %ax
> - movl $0x20, %eax
> + movl $__BOOT_TSS, %eax

__BOOT_TSS = (GDT_ENTRY_BOOT_TSS * 8)
GDT_ENTRY_BOOT_TSS = (GDT_ENTRY_BOOT_CS + 2)
GDT_ENTRY_BOOT_CS = 2

(2 + 2) * 8 = 4 * 8 = 32 = 0x20

Reviewed-by: Steven Rostedt <rostedt@xxxxxxxxxxx>

-- Steve

> ltr %ax
>
> /*

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/