]> git.proxmox.com Git - mirror_qemu.git/blobdiff - bsd-user/qemu.h
cpu: Remove page_size_init
[mirror_qemu.git] / bsd-user / qemu.h
index dc842fffa7d3ec04ae40cbc092bf13ce7dddeee6..c05c5127676df0f170fd76b88d040d6b0174ee88 100644 (file)
@@ -39,6 +39,13 @@ extern char **environ;
 #include "qemu/clang-tsa.h"
 
 #include "qemu-os.h"
+/*
+ * TODO: Remove these and rely only on qemu_real_host_page_size().
+ */
+extern uintptr_t qemu_host_page_size;
+extern intptr_t qemu_host_page_mask;
+#define HOST_PAGE_ALIGN(addr) ROUND_UP((addr), qemu_host_page_size)
+
 /*
  * This struct is used to hold certain information about the image.  Basically,
  * it replicates in user space what would be certain task_struct fields in the