diff options
author | Dale Rahn <drahn@cvs.openbsd.org> | 2008-09-13 18:18:26 +0000 |
---|---|---|
committer | Dale Rahn <drahn@cvs.openbsd.org> | 2008-09-13 18:18:26 +0000 |
commit | 11fffd9159a68d6da57c7b5daa71c28a1f018437 (patch) | |
tree | 583b35c1748c3dd27bd54cc8814c51e80f70f9eb /sys | |
parent | 6b664f0e218709861d1549f94cfdc851f0707ee1 (diff) |
Kernel map is supposed to only allocate from the limited kernel addresses,
panic if the kernel attempts to map an improper address.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/powerpc/powerpc/pmap.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/arch/powerpc/powerpc/pmap.c b/sys/arch/powerpc/powerpc/pmap.c index 8d5829f2693..7268f2428d3 100644 --- a/sys/arch/powerpc/powerpc/pmap.c +++ b/sys/arch/powerpc/powerpc/pmap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pmap.c,v 1.105 2008/06/14 10:55:20 mk Exp $ */ +/* $OpenBSD: pmap.c,v 1.106 2008/09/13 18:18:25 drahn Exp $ */ /* * Copyright (c) 2001, 2002, 2007 Dale Rahn. @@ -719,11 +719,8 @@ _pmap_kenter_pa(vaddr_t va, paddr_t pa, vm_prot_t prot, int flags, int cache) /* Do not have pted for this, get one and put it in VP */ if (pted == NULL) { - /* XXX - future panic? */ - printf("pted not preallocated in pmap_kernel() va %lx pa %lx\n", + panic("pted not preallocated in pmap_kernel() va %lx pa %lx\n", va, pa); - pted = pool_get(&pmap_pted_pool, PR_NOWAIT | PR_ZERO); - pmap_vp_enter(pm, va, pted); } if (cache == PMAP_CACHE_DEFAULT) { |