diff options
author | 2006-11-03 03:38:08 +0000 | |
---|---|---|
committer | 2006-11-03 03:38:08 +0000 | |
commit | 39c5ccdf228c0954648677d2abf57a65b3b0ee3d (patch) | |
tree | 686f8fbf9e391c77946373d85cbd11609e2da3e1 | |
parent | mdproc has to be initialised (diff) | |
download | wireguard-openbsd-39c5ccdf228c0954648677d2abf57a65b3b0ee3d.tar.xz wireguard-openbsd-39c5ccdf228c0954648677d2abf57a65b3b0ee3d.zip |
must steal pages from the end of the physseg
-rw-r--r-- | sys/arch/sh/sh/pmap.c | 8 |
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) { |