]> xenbits.xensource.com Git - unikraft/unikraft.git/commitdiff
plat/xen/x86: Use the already defined `ENTRY` macro from `uk/asm.h`
authorSergiu Moga <sergiu.moga@protonmail.com>
Tue, 28 Feb 2023 18:50:57 +0000 (20:50 +0200)
committerUnikraft <monkey@unikraft.io>
Fri, 11 Aug 2023 08:11:27 +0000 (08:11 +0000)
Remove the in-file definition of the `ENTRY` macro and use the already
existing macro from `uk/asm.h`.

Signed-off-by: Sergiu Moga <sergiu.moga@protonmail.com>
Reviewed-by: Dragos Petre <dragos.petre27@gmail.com>
Reviewed-by: Michalis Pappas <michalis@unikraft.io>
Reviewed-by: Razvan Deaconescu <razvand@unikraft.io>
Approved-by: Razvan Deaconescu <razvand@unikraft.io>
Tested-by: Unikraft CI <monkey@unikraft.io>
GitHub-Closes: #772

plat/xen/x86/entry64.S

index 940dd8f63cad57d37c148e8bf241ae135fc302e3..64381abfc4924155efa85b596250e491259e52ce 100644 (file)
@@ -30,6 +30,7 @@
 #include <uk/config.h>
 #include <xen/xen.h>
 #include <xen/elfnote.h>
+#include <uk/asm.h>
 
 #define ELFNOTE(name, type, desc)           \
     .pushsection .note.name               ; \
@@ -43,8 +44,6 @@
 4:.align 4                                ; \
     .popsection
 
-#define ENTRY(X) .globl X ; X :
-
 #ifdef CONFIG_PARAVIRT
 ELFNOTE(Xen, XEN_ELFNOTE_GUEST_OS, .asciz "Unikraft")
 ELFNOTE(Xen, XEN_ELFNOTE_LOADER, .asciz "generic")