diff options
author | Alan Cox <alc@FreeBSD.org> | 2008-01-03 07:34:34 +0000 |
---|---|---|
committer | Alan Cox <alc@FreeBSD.org> | 2008-01-03 07:34:34 +0000 |
commit | eb2a0517205f6c71d51474d11bdfb797fa04b0c0 (patch) | |
tree | 46a2b299e20f99257e0a9e31f02276471aed28a1 /sys/vm/vm_kern.c | |
parent | cd093614f34e88b206a493f564229965c8a57db4 (diff) | |
download | src-eb2a0517205f6c71d51474d11bdfb797fa04b0c0.tar.gz src-eb2a0517205f6c71d51474d11bdfb797fa04b0c0.zip |
Add an access type parameter to pmap_enter(). It will be used to implement
superpage promotion.
Correct a style error in kmem_malloc(): pmap_enter()'s last parameter is
a Boolean.
Notes
Notes:
svn path=/head/; revision=175067
Diffstat (limited to 'sys/vm/vm_kern.c')
-rw-r--r-- | sys/vm/vm_kern.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/vm/vm_kern.c b/sys/vm/vm_kern.c index 3b6de839d74e..44694f51ea92 100644 --- a/sys/vm/vm_kern.c +++ b/sys/vm/vm_kern.c @@ -406,7 +406,8 @@ retry: /* * Because this is kernel_pmap, this call will not block. */ - pmap_enter(kernel_pmap, addr + i, m, VM_PROT_ALL, 1); + pmap_enter(kernel_pmap, addr + i, VM_PROT_ALL, m, VM_PROT_ALL, + TRUE); vm_page_wakeup(m); } VM_OBJECT_UNLOCK(kmem_object); |