summaryrefslogtreecommitdiff
path: root/sys/arch/hppa64
diff options
context:
space:
mode:
authorJoel Sing <jsing@cvs.openbsd.org>2010-07-02 22:47:55 +0000
committerJoel Sing <jsing@cvs.openbsd.org>2010-07-02 22:47:55 +0000
commit6f3f7f9383af74b796c7dcfc1f4347f29b05de9b (patch)
tree96fb7cdb9ab18f24701b466d3f6e2e17c06f4d31 /sys/arch/hppa64
parentc94807dc8e5c23b457b94088f2867d5b05e8201c (diff)
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@
Diffstat (limited to 'sys/arch/hppa64')
-rw-r--r--sys/arch/hppa64/hppa64/pmap.c4
1 files 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));