summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorjsing <jsing@openbsd.org>2010-07-02 22:47:54 +0000
committerjsing <jsing@openbsd.org>2010-07-02 22:47:54 +0000
commit17ece55539a22fdd42d7ece5bd4c95fff18c268f (patch)
treeea51a6e7c6590cec64fef4928a396c85fd5240a3 /sys
parenttags.c isn't needed at all, so exclude the entire object instead of (diff)
downloadwireguard-openbsd-17ece55539a22fdd42d7ece5bd4c95fff18c268f.tar.xz
wireguard-openbsd-17ece55539a22fdd42d7ece5bd4c95fff18c268f.zip
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')
-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));