summaryrefslogtreecommitdiff
path: root/sys/arch/sh
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2006-11-03 03:38:09 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2006-11-03 03:38:09 +0000
commit84b8990e783366cf3c58fce182fac3a63ba07a84 (patch)
treedc36e5d1d12b84998684d928e1695596a3cb588c /sys/arch/sh
parent2f6ea8a91f3d24d023e296ffd11fe2825e69cf83 (diff)
must steal pages from the end of the physseg
Diffstat (limited to 'sys/arch/sh')
-rw-r--r--sys/arch/sh/sh/pmap.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/arch/sh/sh/pmap.c b/sys/arch/sh/sh/pmap.c
index 993aa056d7d..ed21bf3ca45 100644
--- a/sys/arch/sh/sh/pmap.c
+++ b/sys/arch/sh/sh/pmap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap.c,v 1.2 2006/10/06 21:16:57 mickey Exp $ */
+/* $OpenBSD: pmap.c,v 1.3 2006/11/03 03:38:08 mickey Exp $ */
/* $NetBSD: pmap.c,v 1.55 2006/08/07 23:19:36 tsutsui Exp $ */
/*-
@@ -141,9 +141,9 @@ pmap_steal_memory(vsize_t size, vaddr_t *vstart, vaddr_t *vend)
KDASSERT(i != vm_nphysseg);
/* Steal pages */
- pa = ptoa(bank->avail_start);
- bank->avail_start += npage;
- bank->start += npage;
+ bank->avail_end -= npage;
+ bank->end -= npage;
+ pa = ptoa(bank->avail_end);
/* GC memory bank */
if (bank->avail_start == bank->end) {