]> xenbits.xensource.com Git - mini-os.git/commitdiff
mini-os: don't repeat definition available via header file
authorJuergen Gross <jgross@suse.com>
Tue, 21 Dec 2021 08:46:31 +0000 (09:46 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 21 Dec 2021 10:53:49 +0000 (10:53 +0000)
arch/x86/setup.c is repeating the definition of __pte() instead using
the appropriate header. Fix that.

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
arch/x86/setup.c

index 1ec68d309225e70e2faf737d5a02d9aa0f74fbb2..b27bbed71e6254cf64e322f869a50960dad55030 100644 (file)
@@ -29,6 +29,7 @@
 #include <mini-os/os.h>
 #include <mini-os/lib.h> /* for printk, memcpy */
 #include <mini-os/kernel.h>
+#include <mini-os/hypervisor.h>
 #include <xen/xen.h>
 #include <xen/arch-x86/cpuid.h>
 #include <xen/arch-x86/hvm/start_info.h>
@@ -61,13 +62,6 @@ char stack[2*STACK_SIZE];
 
 extern char shared_info[PAGE_SIZE];
 
-#if defined(__x86_64__)
-#define __pte(x) ((pte_t) { (x) } )
-#else
-#define __pte(x) ({ unsigned long long _x = (x);        \
-    ((pte_t) {(unsigned long)(_x), (unsigned long)(_x>>32)}); })
-#endif
-
 static inline void fpu_init(void) {
        asm volatile("fninit");
 }