diff options
author | 2005-03-01 01:28:39 +0000 | |
---|---|---|
committer | 2005-03-01 01:28:39 +0000 | |
commit | 0d31f211622305e254c4f9775d13682bc89028d2 (patch) | |
tree | 7012f8831bdae6c52595cc76cd8f1e3d9e6cb3a4 | |
parent | Store interrupt state in one variable not two, remove inlines which (diff) | |
download | wireguard-openbsd-0d31f211622305e254c4f9775d13682bc89028d2.tar.xz wireguard-openbsd-0d31f211622305e254c4f9775d13682bc89028d2.zip |
only use MAX_KMAPENT 2000 on i386 amd64 sparc64 and revert to 1000 on all
other archs for now, beck theo ok
-rw-r--r-- | sys/uvm/uvm_map.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/sys/uvm/uvm_map.h b/sys/uvm/uvm_map.h index 4231459f1c2..bd10caedd98 100644 --- a/sys/uvm/uvm_map.h +++ b/sys/uvm/uvm_map.h @@ -1,4 +1,4 @@ -/* $OpenBSD: uvm_map.h,v 1.30 2005/02/19 17:58:03 henning Exp $ */ +/* $OpenBSD: uvm_map.h,v 1.31 2005/03/01 01:28:39 henning Exp $ */ /* $NetBSD: uvm_map.h,v 1.24 2001/02/18 21:19:08 chs Exp $ */ /* @@ -245,11 +245,17 @@ struct vm_map { /* XXX: number of kernel maps and entries to statically allocate */ +#if defined(__i386__) || defined(__amd64__) || defined (__sparc64__) +#define _MAX_KMAPENT 2000 +#else +#define _MAX_KMAPENT 1000 +#endif + #if !defined(MAX_KMAPENT) -#if (50 + (2 * NPROC) > 2000) +#if (50 + (2 * NPROC) > _MAX_KMAPENT) #define MAX_KMAPENT (50 + (2 * NPROC)) #else -#define MAX_KMAPENT 2000 /* XXXCDC: no crash */ +#define MAX_KMAPENT _MAX_KMAPENT /* XXXCDC: no crash */ #endif #endif /* !defined MAX_KMAPENT */ |