diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2011-04-04 11:56:13 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2011-04-04 11:56:13 +0000 |
commit | 14c91f30e15179a4c98685223d27237a4d8c89a2 (patch) | |
tree | e745e497a187158bc2df916d239950de88a15824 /sys/uvm/uvm_km.c | |
parent | aa39211e6e0ff2a0903a603eb9273cc503d61b19 (diff) |
Some minor fixes:
- Clarify a comment.
- Change all the flags to chars from ints to make the structs smaller.
Diffstat (limited to 'sys/uvm/uvm_km.c')
-rw-r--r-- | sys/uvm/uvm_km.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/sys/uvm/uvm_km.c b/sys/uvm/uvm_km.c index 83d4bf4628f..1f86cabfcb4 100644 --- a/sys/uvm/uvm_km.c +++ b/sys/uvm/uvm_km.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uvm_km.c,v 1.87 2011/04/04 11:24:45 art Exp $ */ +/* $OpenBSD: uvm_km.c,v 1.88 2011/04/04 11:56:12 art Exp $ */ /* $NetBSD: uvm_km.c,v 1.42 2001/01/14 02:10:01 thorpej Exp $ */ /* @@ -960,7 +960,12 @@ km_alloc(size_t sz, struct kmem_va_mode *kv, struct kmem_pa_mode *kp, #ifdef __HAVE_PMAP_DIRECT if (kv->kv_align || kv->kv_executable) goto alloc_va; -#if 1 /* For now, because I'm lazy in free */ +#if 1 + /* + * For now, only do DIRECT mappings for single page + * allocations, until we figure out a good way to deal + * with contig allocations in km_free. + */ if (!kv->kv_singlepage) goto alloc_va; #endif |