Module Name: src
Committed By: skrll
Date: Mon Jan 20 10:43:49 UTC 2020
Modified Files:
src/sys/uvm: uvm_km.c
Log Message:
Another #define protection.
PMAP_ALLOC_POOLPAGE expects PMAP_{,UN}MAP_POOLPAGE to be defined
To generate a diff of this commit:
cvs rdiff -u -r1.152 -r1.153 src/sys/uvm/uvm_km.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/uvm/uvm_km.c
diff -u src/sys/uvm/uvm_km.c:1.152 src/sys/uvm/uvm_km.c:1.153
--- src/sys/uvm/uvm_km.c:1.152 Sat Dec 14 17:28:58 2019
+++ src/sys/uvm/uvm_km.c Mon Jan 20 10:43:48 2020
@@ -1,4 +1,4 @@
-/* $NetBSD: uvm_km.c,v 1.152 2019/12/14 17:28:58 ad Exp $ */
+/* $NetBSD: uvm_km.c,v 1.153 2020/01/20 10:43:48 skrll Exp $ */
/*
* Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -152,7 +152,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_km.c,v 1.152 2019/12/14 17:28:58 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_km.c,v 1.153 2020/01/20 10:43:48 skrll Exp $");
#include "opt_uvmhist.h"
@@ -775,6 +775,11 @@ uvm_km_free(struct vm_map *map, vaddr_t
#error Must specify MAP and UNMAP together.
#endif
+#if defined(PMAP_ALLOC_POOLPAGE) && \
+ !defined(PMAP_MAP_POOLPAGE) && !defined(PMAP_UNMAP_POOLPAGE)
+#error Must specify ALLOC with MAP and UNMAP
+#endif
+
int
uvm_km_kmem_alloc(vmem_t *vm, vmem_size_t size, vm_flag_t flags,
vmem_addr_t *addr)