diff options
author | 2010-07-02 22:47:54 +0000 | |
---|---|---|
committer | 2010-07-02 22:47:54 +0000 | |
commit | 17ece55539a22fdd42d7ece5bd4c95fff18c268f (patch) | |
tree | ea51a6e7c6590cec64fef4928a396c85fd5240a3 | |
parent | tags.c isn't needed at all, so exclude the entire object instead of (diff) | |
download | wireguard-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@
-rw-r--r-- | sys/arch/hppa64/hppa64/pmap.c | 4 |
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)); |