From 6f3f7f9383af74b796c7dcfc1f4347f29b05de9b Mon Sep 17 00:00:00 2001 From: Joel Sing Date: Fri, 2 Jul 2010 22:47:55 +0000 Subject: When we steal memory, return the VA for the memory that we have stolen and not the memory prior to it. Lots of help from oga@ ok kettenis@ --- sys/arch/hppa64/hppa64/pmap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/arch/hppa64/hppa64/pmap.c b/sys/arch/hppa64/hppa64/pmap.c index db732025741..9c1661c101f 100644 --- a/sys/arch/hppa64/hppa64/pmap.c +++ b/sys/arch/hppa64/hppa64/pmap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pmap.c,v 1.11 2010/07/01 04:18:36 jsing Exp $ */ +/* $OpenBSD: pmap.c,v 1.12 2010/07/02 22:47:54 jsing Exp $ */ /* * Copyright (c) 2005 Michael Shalayeff @@ -572,7 +572,7 @@ pmap_steal_memory(vsize_t size, vaddr_t *vstartp, vaddr_t *vendp) vm_physmem[0].end -= npg; vm_physmem[0].avail_end -= npg; - va = ptoa(vm_physmem[0].avail_end) - size; + va = ptoa(vm_physmem[0].avail_end); bzero((void *)va, size); DPRINTF(PDB_FOLLOW|PDB_PHYS, ("pmap_steal_memory: 0x%lx\n", va)); -- cgit v1.2.3