Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/uvm Another #define protection.



details:   https://anonhg.NetBSD.org/src/rev/df5f71fec3d7
branches:  trunk
changeset: 848190:df5f71fec3d7
user:      skrll <skrll%NetBSD.org@localhost>
date:      Mon Jan 20 10:43:48 2020 +0000

description:
Another #define protection.

PMAP_ALLOC_POOLPAGE expects PMAP_{,UN}MAP_POOLPAGE to be defined

diffstat:

 sys/uvm/uvm_km.c |  9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diffs (30 lines):

diff -r 41dd2352ed8a -r df5f71fec3d7 sys/uvm/uvm_km.c
--- a/sys/uvm/uvm_km.c  Mon Jan 20 10:35:42 2020 +0000
+++ b/sys/uvm/uvm_km.c  Mon Jan 20 10:43:48 2020 +0000
@@ -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 @@
 #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)



Home | Main Index | Thread Index | Old Index