From: Andrew Cooper Subject: [PATCH 1/4] x86/boot: Remove high_start and ret_point Date: Fri, 25 Apr 2014 20:50:56 +0100 Message-ID: <1398455459-8431-2-git-send-email-andrew.cooper3@citrix.com> References: <1398455459-8431-1-git-send-email-andrew.cooper3@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1398455459-8431-1-git-send-email-andrew.cooper3@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Xen-devel Cc: Andrew Cooper , Keir Fraser , Jan Beulich List-Id: xen-devel@lists.xenproject.org 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 CC: Keir Fraser CC: Jan Beulich --- xen/arch/x86/boot/trampoline.S | 5 +---- xen/arch/x86/boot/wakeup.S | 5 +---- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/xen/arch/x86/boot/trampoline.S b/xen/arch/x86/boot/trampoline.S index 4f5f8d7..ccb40fb 100644 --- a/xen/arch/x86/boot/trampoline.S +++ b/xen/arch/x86/boot/trampoline.S @@ -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) diff --git a/xen/arch/x86/boot/wakeup.S b/xen/arch/x86/boot/wakeup.S index a3883c1..08ea9b2 100644 --- a/xen/arch/x86/boot/wakeup.S +++ b/xen/arch/x86/boot/wakeup.S @@ -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 -- 1.7.10.4