diff options
author | 2012-03-24 22:10:59 +0000 | |
---|---|---|
committer | 2012-03-24 22:10:59 +0000 | |
commit | 54eedf1e2376f29cbe0fecd2b50aa44e90507d90 (patch) | |
tree | ac5faf487602d4d93b66860425e53a15d21eb7a5 | |
parent | Another tiny test case (diff) | |
download | wireguard-openbsd-54eedf1e2376f29cbe0fecd2b50aa44e90507d90.tar.xz wireguard-openbsd-54eedf1e2376f29cbe0fecd2b50aa44e90507d90.zip |
Fix fallback of uvm_map_hint() argument changes.
-rw-r--r-- | sys/arch/mips64/mips64/mips64_machdep.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/mips64/mips64/mips64_machdep.c b/sys/arch/mips64/mips64/mips64_machdep.c index 3cb514bf63c..463cb8a3825 100644 --- a/sys/arch/mips64/mips64/mips64_machdep.c +++ b/sys/arch/mips64/mips64/mips64_machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mips64_machdep.c,v 1.2 2010/11/24 21:16:28 miod Exp $ */ +/* $OpenBSD: mips64_machdep.c,v 1.3 2012/03/24 22:10:59 miod Exp $ */ /* * Copyright (c) 2009, 2010 Miodrag Vallat. @@ -168,7 +168,7 @@ exec_md_map(struct proc *p, struct exec_package *pack) * successful conditional branches. */ - va = uvm_map_hint(p, UVM_PROT_RX); + va = uvm_map_hint(p->p_vmspace, UVM_PROT_RX); rc = uvm_map(&p->p_vmspace->vm_map, &va, PAGE_SIZE, NULL, UVM_UNKNOWN_OFFSET, 0, UVM_MAPFLAG(UVM_PROT_NONE, UVM_PROT_ALL, UVM_INH_COPY, |