diff options
author | alc <alc@FreeBSD.org> | 2003-08-02 06:17:01 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2003-08-02 06:17:01 +0000 |
commit | cd7b955e65068afa19dfb014e2f219c2523973bd (patch) | |
tree | c0b1b4f99ad8a3e989d8cad3720a20d47cf8b36f | |
parent | 872cc1e408e67d537b149554ddb1a411bd5fab90 (diff) | |
download | FreeBSD-src-cd7b955e65068afa19dfb014e2f219c2523973bd.zip FreeBSD-src-cd7b955e65068afa19dfb014e2f219c2523973bd.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
- Remove GIANT_REQUIRED from pmap_mapdev().
-rw-r--r-- | sys/i386/i386/pmap.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/i386/i386/pmap.c b/sys/i386/i386/pmap.c index ecd5755..4da8911 100644 --- a/sys/i386/i386/pmap.c +++ b/sys/i386/i386/pmap.c @@ -3040,9 +3040,7 @@ pmap_mapdev(pa, size) offset = pa & PAGE_MASK; size = roundup(offset + size, PAGE_SIZE); - GIANT_REQUIRED; - - 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"); |