make sure only one of them is prototyped and only one of them is implemented.
ok mpi@ kettenis@
-/* $OpenBSD: pmap.c,v 1.165 2023/12/29 13:23:27 jca Exp $ */
+/* $OpenBSD: pmap.c,v 1.166 2024/04/03 18:43:32 miod Exp $ */
/* $NetBSD: pmap.c,v 1.3 2003/05/08 18:13:13 thorpej Exp $ */
/*
return (va);
}
-void
-pmap_virtual_space(vaddr_t *vstartp, vaddr_t *vendp)
-{
- *vstartp = virtual_avail;
- *vendp = VM_MAX_KERNEL_ADDRESS;
-}
-
/*
* pmap_convert
*
-/* $OpenBSD: pmap.c,v 1.222 2023/04/13 15:23:22 miod Exp $ */
+/* $OpenBSD: pmap.c,v 1.223 2024/04/03 18:43:32 miod Exp $ */
/* $NetBSD: pmap.c,v 1.91 2000/06/02 17:46:37 thorpej Exp $ */
/*
}
/*
- * pmap_virtual_space: used during bootup [pmap_steal_memory] to
+ * pmap_virtual_space: used during bootup [uvm_pageboot_alloc] to
* determine the bounds of the kernel virtual address space.
*/
-/* $OpenBSD: uvm_pmap.h,v 1.33 2023/04/13 15:23:23 miod Exp $ */
+/* $OpenBSD: uvm_pmap.h,v 1.34 2024/04/03 18:43:32 miod Exp $ */
/* $NetBSD: uvm_pmap.h,v 1.1 2000/06/27 09:00:14 mrg Exp $ */
/*
void pmap_zero_page(struct vm_page *);
#endif
-void pmap_virtual_space(vaddr_t *, vaddr_t *);
#if defined(PMAP_STEAL_MEMORY)
vaddr_t pmap_steal_memory(vsize_t, vaddr_t *, vaddr_t *);
+#else
+void pmap_virtual_space(vaddr_t *, vaddr_t *);
#endif
/* nested pmaps are used in i386/amd64 vmm */