diff options
author | Mike Belopuhov <mikeb@cvs.openbsd.org> | 2008-11-22 18:13:04 +0000 |
---|---|---|
committer | Mike Belopuhov <mikeb@cvs.openbsd.org> | 2008-11-22 18:13:04 +0000 |
commit | f07a23983af2457f65451652e0339f0d8d29515e (patch) | |
tree | 60a3f7ecd010b6b8bc7461226df892d4a28d7ef0 /sys/arch/i386 | |
parent | 207de1d51439254d44a0061d17760081f8e4a9b7 (diff) |
Allow wired memory to be accounted on i386. This automatically changes
the policy for the mlock(2) on this architecture: all users are allowed
to call mlock, while the limit is imposed by the current RLIMIT_MEMLOCK
value.
"makes sense" art, ok hshoexer (who was running with the same change for
about 10 months).
Diffstat (limited to 'sys/arch/i386')
-rw-r--r-- | sys/arch/i386/include/pmap.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/arch/i386/include/pmap.h b/sys/arch/i386/include/pmap.h index 37f72bf0c98..2f55cf75e27 100644 --- a/sys/arch/i386/include/pmap.h +++ b/sys/arch/i386/include/pmap.h @@ -1,4 +1,4 @@ -/* $OpenBSD: pmap.h,v 1.48 2007/09/10 18:49:45 miod Exp $ */ +/* $OpenBSD: pmap.h,v 1.49 2008/11/22 18:13:03 mikeb Exp $ */ /* $NetBSD: pmap.h,v 1.44 2000/04/24 17:18:18 thorpej Exp $ */ /* @@ -347,6 +347,7 @@ extern int pmap_pg_g; /* do we support PG_G? */ */ #define pmap_kernel() (&kernel_pmap_store) +#define pmap_wired_count(pmap) ((pmap)->pm_stats.wired_count) #define pmap_resident_count(pmap) ((pmap)->pm_stats.resident_count) #define pmap_update(pm) /* nada */ |