diff options
author | Philip Guenther <guenther@cvs.openbsd.org> | 2014-12-15 02:24:24 +0000 |
---|---|---|
committer | Philip Guenther <guenther@cvs.openbsd.org> | 2014-12-15 02:24:24 +0000 |
commit | f61f2ae4bb51d8b7a9ee01c2989522f336618d7d (patch) | |
tree | 5a1de4696d0daa317cad34f8858407df1e10805f /sys/arch/mips64 | |
parent | ec8373aeb4f1b524b9597fc90351bc52eb411ca2 (diff) |
Use MAP_INHERIT_* for the 'inh' argument to the UMV_MAPFLAG() macro,
eliminating the must-be-kept-in-sync UVM_INH_* macros
ok deraadt@ tedu@
Diffstat (limited to 'sys/arch/mips64')
-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 21dd133ee49..3ddf2c1fabd 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.18 2014/12/13 23:29:14 guenther Exp $ */ +/* $OpenBSD: mips64_machdep.c,v 1.19 2014/12/15 02:24:22 guenther Exp $ */ /* * Copyright (c) 2009, 2010, 2012 Miodrag Vallat. @@ -184,7 +184,7 @@ exec_md_map(struct proc *p, struct exec_package *pack) va = 0; rc = uvm_map(&p->p_vmspace->vm_map, &va, PAGE_SIZE, NULL, UVM_UNKNOWN_OFFSET, 0, - UVM_MAPFLAG(PROT_NONE, PROT_MASK, UVM_INH_COPY, + UVM_MAPFLAG(PROT_NONE, PROT_MASK, MAP_INHERIT_COPY, MADV_NORMAL, UVM_FLAG_COPYONW)); if (rc != 0) return rc; |