diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2001-11-07 01:18:02 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2001-11-07 01:18:02 +0000 |
commit | c1c5c105f41ad5a43d2d86df94c7b57a4e86d03f (patch) | |
tree | f35ef0cfc30ec497901dac2701302652e736c1f4 /sys/kern/sysv_shm.c | |
parent | 0cf5ca3327d0f3f051ffeeedbbf725cdb3b5b201 (diff) |
Add an alignment argument to uvm_map that specifies an alignment hint
for the virtual address.
Diffstat (limited to 'sys/kern/sysv_shm.c')
-rw-r--r-- | sys/kern/sysv_shm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/sysv_shm.c b/sys/kern/sysv_shm.c index c63455509ba..f7a233d632c 100644 --- a/sys/kern/sysv_shm.c +++ b/sys/kern/sysv_shm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sysv_shm.c,v 1.21 2001/11/06 19:53:20 miod Exp $ */ +/* $OpenBSD: sysv_shm.c,v 1.22 2001/11/07 01:18:01 art Exp $ */ /* $NetBSD: sysv_shm.c,v 1.50 1998/10/21 22:24:29 tron Exp $ */ /* @@ -253,7 +253,7 @@ sys_shmat(p, v, retval) shm_handle = shmseg->shm_internal; uao_reference(shm_handle->shm_object); rv = uvm_map(&p->p_vmspace->vm_map, &attach_va, size, - shm_handle->shm_object, 0, UVM_MAPFLAG(prot, prot, + shm_handle->shm_object, 0, 0, UVM_MAPFLAG(prot, prot, UVM_INH_SHARE, UVM_ADV_RANDOM, 0)); if (rv != KERN_SUCCESS) { return ENOMEM; |