diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2012-03-24 22:11:00 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2012-03-24 22:11:00 +0000 |
commit | e3d65c47f3e7f0b4b2f79c913cccc88e7b75661e (patch) | |
tree | cf90afce21a20c273a610d8b3ae7fe18edffdff3 /sys | |
parent | cc60eadc8413e6deeddf569a14fdacaeeb308457 (diff) |
Fix fallback of uvm_map_hint() argument changes.
Diffstat (limited to 'sys')
-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, |