x86/boot: remove high_start and ret_point
authorAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 28 Apr 2014 10:46:11 +0000 (12:46 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 28 Apr 2014 10:46:11 +0000 (12:46 +0200)
They are not needed.  This form is a few bytes leaner overall, but
usefully removes pieces of data from the middle of the code section.

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

index 4f5f8d7f3d0b6e36e192fd8dc5f2469204f35340..ccb40fb4d8aabf7a9c6e66a0513675ea5802591c 100644 (file)
@@ -109,12 +109,9 @@ trampoline_protmode_entry:
         .code64
 start64:
         /* Jump to high mappings. */
-        mov     high_start(%rip),%rax
+        movabs  $__high_start,%rax
         jmpq    *%rax
 
-high_start:
-        .quad   __high_start
-
         .code32
 trampoline_boot_cpu_entry:
         cmpb    $0,bootsym_rel(skip_realmode,5)
index a3883c14311eb3fce8d74e01a8d90687dffcf761..08ea9b2c4a5699a2022f136d9cb559321e468523 100644 (file)
@@ -166,12 +166,9 @@ wakeup_32:
         .code64
 wakeup_64:
         /* Jump to high mappings and the higher-level wakeup code. */
-        movq    ret_point(%rip), %rbx
+        movabs  $__ret_point, %rbx
         jmp     *%rbx
 
-ret_point:
-        .quad   __ret_point
-
 bogus_saved_magic:
         movw    $0x0e00 + 'S', 0xb8014
         jmp     bogus_saved_magic