@@ -1,8 +1,9 @@
.file __FILE__
+#include <xen/linkage.h>
#include <asm/page.h>
-ENTRY(clear_page_sse2)
+FUNC(clear_page_sse2)
mov $PAGE_SIZE/32, %ecx
xor %eax,%eax
@@ -16,6 +17,4 @@ ENTRY(clear_page_sse2)
sfence
ret
-
- .type clear_page_sse2, @function
- .size clear_page_sse2, . - clear_page_sse2
+END(clear_page_sse2)
@@ -1,5 +1,6 @@
.file __FILE__
+#include <xen/linkage.h>
#include <asm/page.h>
#define src_reg %rsi
@@ -10,7 +11,7 @@
#define tmp3_reg %r10
#define tmp4_reg %r11
-ENTRY(copy_page_sse2)
+FUNC(copy_page_sse2)
mov $PAGE_SIZE/(4*WORD_SIZE)-3, %ecx
prefetchnta 2*4*WORD_SIZE(src_reg)
@@ -41,6 +42,4 @@ ENTRY(copy_page_sse2)
sfence
ret
-
- .type copy_page_sse2, @function
- .size copy_page_sse2, . - copy_page_sse2
+END(copy_page_sse2)
@@ -3,13 +3,11 @@
#include <public/xen.h>
.section ".text.page_aligned", "ax", @progbits
- .p2align PAGE_SHIFT
-GLOBAL(hypercall_page)
+DATA(hypercall_page, PAGE_SIZE)
/* Poisoned with `ret` for safety before hypercalls are set up. */
.fill PAGE_SIZE, 1, 0xc3
- .type hypercall_page, STT_OBJECT
- .size hypercall_page, PAGE_SIZE
+END(hypercall_page)
/*
* Identify a specific hypercall in the hypercall page
@@ -35,15 +35,13 @@
.macro GEN_INDIRECT_THUNK reg:req
.section .text.__x86_indirect_thunk_\reg, "ax", @progbits
-ENTRY(__x86_indirect_thunk_\reg)
+FUNC(__x86_indirect_thunk_\reg)
ALTERNATIVE_2 __stringify(IND_THUNK_RETPOLINE \reg), \
__stringify(IND_THUNK_LFENCE \reg), X86_FEATURE_IND_THUNK_LFENCE, \
__stringify(IND_THUNK_JMP \reg), X86_FEATURE_IND_THUNK_JMP
int3 /* Halt straight-line speculation */
-
- .size __x86_indirect_thunk_\reg, . - __x86_indirect_thunk_\reg
- .type __x86_indirect_thunk_\reg, @function
+END(__x86_indirect_thunk_\reg)
.endm
/* Instantiate GEN_INDIRECT_THUNK for each register except %rsp. */
@@ -10,7 +10,7 @@
#include <asm/asm_defns.h>
/* Load guest GPRs. Parameter in %rdi, clobbers all registers. */
-ENTRY(load_guest_gprs)
+FUNC(load_guest_gprs)
movq UREGS_rdx(%rdi), %rdx
movq UREGS_rax(%rdi), %rax
movq UREGS_rbx(%rdi), %rbx
@@ -27,13 +27,10 @@ ENTRY(load_guest_gprs)
movq UREGS_rcx(%rdi), %rcx
movq UREGS_rdi(%rdi), %rdi
ret
-
- .size load_guest_gprs, . - load_guest_gprs
- .type load_guest_gprs, STT_FUNC
-
+END(load_guest_gprs)
/* Save guest GPRs. Parameter on the stack above the return address. */
-ENTRY(save_guest_gprs)
+FUNC(save_guest_gprs)
pushq %rdi
movq 2*8(%rsp), %rdi
movq %rax, UREGS_rax(%rdi)
@@ -52,6 +49,4 @@ ENTRY(save_guest_gprs)
movq %rdx, UREGS_rdx(%rdi)
movq %rcx, UREGS_rcx(%rdi)
ret
-
- .size save_guest_gprs, . - save_guest_gprs
- .type save_guest_gprs, STT_FUNC
+END(save_guest_gprs)
@@ -599,7 +599,7 @@ domain_crash_page_fault_0x8:
ALTERNATIVE "", clac, X86_FEATURE_XEN_SMAP
movq %rsi,%rdi
call show_page_walk
-ENTRY(dom_crash_sync_extable)
+LABEL(dom_crash_sync_extable, 0)
ALTERNATIVE "", clac, X86_FEATURE_XEN_SMAP
# Get out of the guest-save area of the stack.
GET_STACK_END(ax)
Use the generic framework from xen/linkage.h. Signed-off-by: Jan Beulich <jbeulich@suse.com> --- v6: New.