diff options
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/hppa/hppa/pmap.c | 6 | ||||
-rw-r--r-- | sys/arch/hppa64/hppa64/pmap.c | 6 | ||||
-rw-r--r-- | sys/arch/i386/i386/pmap.c | 6 |
3 files changed, 9 insertions, 9 deletions
diff --git a/sys/arch/hppa/hppa/pmap.c b/sys/arch/hppa/hppa/pmap.c index 9475f72a1e9..ea588f86dfa 100644 --- a/sys/arch/hppa/hppa/pmap.c +++ b/sys/arch/hppa/hppa/pmap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pmap.c,v 1.127 2005/10/26 18:35:44 martin Exp $ */ +/* $OpenBSD: pmap.c,v 1.128 2005/12/25 21:39:04 miod Exp $ */ /* * Copyright (c) 1998-2004 Michael Shalayeff @@ -766,7 +766,7 @@ pmap_enter(pmap, va, pa, prot, flags) !(pde = pmap_pde_alloc(pmap, va, &ptp))) { if (flags & PMAP_CANFAIL) { simple_unlock(&pmap->pm_lock); - return (KERN_RESOURCE_SHORTAGE); + return (ENOMEM); } panic("pmap_enter: cannot allocate pde"); @@ -814,7 +814,7 @@ pmap_enter(pmap, va, pa, prot, flags) if (flags & PMAP_CANFAIL) { simple_unlock(&pg->mdpage.pvh_lock); simple_unlock(&pmap->pm_lock); - return (KERN_RESOURCE_SHORTAGE); + return (ENOMEM); } panic("pmap_enter: no pv entries available"); } diff --git a/sys/arch/hppa64/hppa64/pmap.c b/sys/arch/hppa64/hppa64/pmap.c index dc7b95b0849..e0b8547d7d8 100644 --- a/sys/arch/hppa64/hppa64/pmap.c +++ b/sys/arch/hppa64/hppa64/pmap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pmap.c,v 1.2 2005/10/26 18:35:45 martin Exp $ */ +/* $OpenBSD: pmap.c,v 1.3 2005/12/25 21:39:06 miod Exp $ */ /* * Copyright (c) 2005 Michael Shalayeff @@ -710,7 +710,7 @@ pmap_enter(pmap, va, pa, prot, flags) !(pde = pmap_pde_alloc(pmap, va, &ptp))) { if (flags & PMAP_CANFAIL) { simple_unlock(&pmap->pm_lock); - return (KERN_RESOURCE_SHORTAGE); + return (ENOMEM); } panic("pmap_enter: cannot allocate pde"); @@ -759,7 +759,7 @@ pmap_enter(pmap, va, pa, prot, flags) if (flags & PMAP_CANFAIL) { simple_unlock(&pg->mdpage.pvh_lock); simple_unlock(&pmap->pm_lock); - return (KERN_RESOURCE_SHORTAGE); + return (ENOMEM); } panic("pmap_enter: no pv entries available"); } diff --git a/sys/arch/i386/i386/pmap.c b/sys/arch/i386/i386/pmap.c index 5b4fa311f44..be3a1640013 100644 --- a/sys/arch/i386/i386/pmap.c +++ b/sys/arch/i386/i386/pmap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pmap.c,v 1.86 2005/12/10 11:45:41 miod Exp $ */ +/* $OpenBSD: pmap.c,v 1.87 2005/12/25 21:39:06 miod Exp $ */ /* $NetBSD: pmap.c,v 1.91 2000/06/02 17:46:37 thorpej Exp $ */ /* @@ -3182,7 +3182,7 @@ pmap_enter(pmap, va, pa, prot, flags) ptp = pmap_get_ptp(pmap, pdei(va), FALSE); if (ptp == NULL) { if (flags & PMAP_CANFAIL) { - error = KERN_RESOURCE_SHORTAGE; + error = ENOMEM; goto out; } panic("pmap_enter: get ptp failed"); @@ -3283,7 +3283,7 @@ pmap_enter(pmap, va, pa, prot, flags) pve = pmap_alloc_pv(pmap, ALLOCPV_NEED); if (pve == NULL) { if (flags & PMAP_CANFAIL) { - error = KERN_RESOURCE_SHORTAGE; + error = ENOMEM; goto out; } panic("pmap_enter: no pv entries available"); |