summaryrefslogtreecommitdiff
path: root/sys/arch/i386
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2007-03-26 08:43:35 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2007-03-26 08:43:35 +0000
commitf3e4aab1c715da8604d0a2d20aadf53414facd67 (patch)
treea308e46ca2a6bcd69ef5e2e86200afd4c89774d0 /sys/arch/i386
parent1bff2693343e573573147ca06422bdece9097b4f (diff)
Rip out the KERN_ error codes.
ok otto@
Diffstat (limited to 'sys/arch/i386')
-rw-r--r--sys/arch/i386/i386/pmapae.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/i386/i386/pmapae.c b/sys/arch/i386/i386/pmapae.c
index a091270c208..1c46b9a97f2 100644
--- a/sys/arch/i386/i386/pmapae.c
+++ b/sys/arch/i386/i386/pmapae.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmapae.c,v 1.8 2007/03/18 14:23:57 mickey Exp $ */
+/* $OpenBSD: pmapae.c,v 1.9 2007/03/26 08:43:34 art Exp $ */
/*
* Copyright (c) 2006 Michael Shalayeff
@@ -1976,7 +1976,7 @@ pmap_enter_pae(struct pmap *pmap, vaddr_t va, paddr_t pa, vm_prot_t prot,
ptp = pmap_get_ptp_pae(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");
@@ -2077,7 +2077,7 @@ pmap_enter_pae(struct pmap *pmap, vaddr_t va, paddr_t pa, vm_prot_t prot,
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");