diff options
author | 2008-09-13 18:18:25 +0000 | |
---|---|---|
committer | 2008-09-13 18:18:25 +0000 | |
commit | 009fc341dbe32472ffe4eb4f58643443eb04f497 (patch) | |
tree | cc7e64aee5cb945ebbbe809ea5742c9db8f0c181 | |
parent | fallback to 11b support if the EEPROM is not reporting any available mode. (diff) | |
download | wireguard-openbsd-009fc341dbe32472ffe4eb4f58643443eb04f497.tar.xz wireguard-openbsd-009fc341dbe32472ffe4eb4f58643443eb04f497.zip |
Kernel map is supposed to only allocate from the limited kernel addresses,
panic if the kernel attempts to map an improper address.
-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) { |