@@ -32,6 +32,10 @@
#include <asm/insn.h>
#include <asm/page.h>
+/* Override macros from asm/page.h to make them work with mfn_t */
+#undef virt_to_mfn
+#define virt_to_mfn(va) _mfn(__virt_to_mfn(va))
+
extern const struct alt_instr __alt_instructions[], __alt_instructions_end[];
struct alt_region {
@@ -154,7 +158,7 @@ static int __apply_alternatives_multi_stop(void *unused)
{
int ret;
struct alt_region region;
- mfn_t xen_mfn = _mfn(virt_to_mfn(_start));
+ mfn_t xen_mfn = virt_to_mfn(_start);
paddr_t xen_size = _end - _start;
unsigned int xen_order = get_order_from_bytes(xen_size);
void *xenmap;