diff options
author | alc <alc@FreeBSD.org> | 2003-08-02 19:26:09 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2003-08-02 19:26:09 +0000 |
commit | c38b9c732fa2ba249165f3c965802af67a0ef4dd (patch) | |
tree | e045e2bdc2af7435a77567f320bb465440981e5f /sys/amd64 | |
parent | c1f8b453c0e17990e82b8ac4b807638429f66d3f (diff) | |
download | FreeBSD-src-c38b9c732fa2ba249165f3c965802af67a0ef4dd.zip FreeBSD-src-c38b9c732fa2ba249165f3c965802af67a0ef4dd.tar.gz |
Use kmem_alloc_nofault() rather than kmem_alloc_pageable() in pmap_mapdev().
See revision 1.140 of kern/sys_pipe.c for a detailed rationale.
Submitted by: tegge
Diffstat (limited to 'sys/amd64')
-rw-r--r-- | sys/amd64/amd64/pmap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/amd64/amd64/pmap.c b/sys/amd64/amd64/pmap.c index aa14946..c3996de 100644 --- a/sys/amd64/amd64/pmap.c +++ b/sys/amd64/amd64/pmap.c @@ -2820,7 +2820,7 @@ pmap_mapdev(pa, size) return ((void *)PHYS_TO_DMAP(pa)); offset = pa & PAGE_MASK; size = roundup(offset + size, PAGE_SIZE); - va = kmem_alloc_pageable(kernel_map, size); + va = kmem_alloc_nofault(kernel_map, size); if (!va) panic("pmap_mapdev: Couldn't alloc kernel virtual memory"); pa = pa & PG_FRAME; |