]> xenbits.xensource.com Git - xen.git/commitdiff
x86/boot: Fold gdt_48 into the bottom of trampoline_gdt
authorAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 19 Aug 2019 13:16:53 +0000 (14:16 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 27 Dec 2019 14:10:53 +0000 (14:10 +0000)
Saves 8 bytes in the trampoline.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/boot/trampoline.S

index ef5baa31e07c968626d2f39f0910fd835c6c1354..4b9a9697e974e1ff87c485862a31e297c8c931a0 100644 (file)
@@ -139,12 +139,13 @@ start64:
         .balign 8
         .word   0
 idt_48: .word   0, 0, 0 # base = limit = 0
-        .word   0
-gdt_48: .word   .Ltrampoline_gdt_end - trampoline_gdt - 1
-        .long   bootsym_rel(trampoline_gdt,4)
 
 trampoline_gdt:
-        .quad   0x0000000000000000 /* 0x0000: unused */
+        .word   0                  /* 0x0000: unused (reused for GDTR) */
+gdt_48:
+        .word   .Ltrampoline_gdt_end - trampoline_gdt - 1
+        .long   bootsym_rel(trampoline_gdt, 4)
+
         .quad   0x00cf9b000000ffff /* 0x0008: ring 0 code, 32-bit mode */
         .quad   0x00af9b000000ffff /* 0x0010: ring 0 code, 64-bit mode */
         .quad   0x00cf93000000ffff /* 0x0018: ring 0 data */