diff options
author | Brad Smith <brad@cvs.openbsd.org> | 2005-09-30 02:42:58 +0000 |
---|---|---|
committer | Brad Smith <brad@cvs.openbsd.org> | 2005-09-30 02:42:58 +0000 |
commit | d7b2fe695263ec83098ee5d7f66866dd6dc8eba3 (patch) | |
tree | 699c498546865dc19a2a07f7317a986fa1bc520a | |
parent | 1ea91e7f82b3708c14a37011b69d2c82f6f9508f (diff) |
revert MAX_KMAPENT hack added just before 3.7 now that
a proper fix has been implemented in uvm_mapent_alloc().
ok pedro@
-rw-r--r-- | sys/uvm/uvm_map.h | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/sys/uvm/uvm_map.h b/sys/uvm/uvm_map.h index 6683fc90559..e729e609300 100644 --- a/sys/uvm/uvm_map.h +++ b/sys/uvm/uvm_map.h @@ -1,4 +1,4 @@ -/* $OpenBSD: uvm_map.h,v 1.32 2005/05/24 21:11:47 tedu Exp $ */ +/* $OpenBSD: uvm_map.h,v 1.33 2005/09/30 02:42:57 brad Exp $ */ /* $NetBSD: uvm_map.h,v 1.24 2001/02/18 21:19:08 chs Exp $ */ /* @@ -245,17 +245,11 @@ 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) > _MAX_KMAPENT) +#if (50 + (2 * NPROC) > 1000) #define MAX_KMAPENT (50 + (2 * NPROC)) #else -#define MAX_KMAPENT _MAX_KMAPENT /* XXXCDC: no crash */ +#define MAX_KMAPENT 1000 /* XXXCDC: no crash */ #endif #endif /* !defined MAX_KMAPENT */ |