diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2003-05-09 23:09:22 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2003-05-09 23:09:22 +0000 |
commit | 60fd59680454e411ffce2ad46a2bb1002513b9f1 (patch) | |
tree | c05f225e8f33edeead558d376db483a85ea60a0a /sys | |
parent | d2e6fca5536e77d006a62c2deceddcb7b79b6159 (diff) |
No need to map framebuffers executable. Really.
fries@ niklas@ ok.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/hp300/dev/grf.c | 4 | ||||
-rw-r--r-- | sys/arch/mac68k/dev/grf.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/arch/hp300/dev/grf.c b/sys/arch/hp300/dev/grf.c index fcd648f8ea2..8872de31e07 100644 --- a/sys/arch/hp300/dev/grf.c +++ b/sys/arch/hp300/dev/grf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: grf.c,v 1.20 2002/10/29 18:30:21 art Exp $ */ +/* $OpenBSD: grf.c,v 1.21 2003/05/09 23:09:20 art Exp $ */ /* $NetBSD: grf.c,v 1.30 1998/08/20 08:33:41 kleink Exp $ */ /* @@ -637,7 +637,7 @@ grfmap(dev, addrp, p) vn.v_specinfo = &si; /* XXX */ vn.v_rdev = dev; /* XXX */ error = uvm_mmap(&p->p_vmspace->vm_map, (vaddr_t *)addrp, - (vsize_t)len, VM_PROT_ALL, VM_PROT_ALL, + (vsize_t)len, UVM_PROT_RW, UVM_PROT_RW, flags, (caddr_t)&vn, 0, p->p_rlimit[RLIMIT_MEMLOCK].rlim_cur); if (error == 0) diff --git a/sys/arch/mac68k/dev/grf.c b/sys/arch/mac68k/dev/grf.c index bd4082449ec..d5d43bca1a1 100644 --- a/sys/arch/mac68k/dev/grf.c +++ b/sys/arch/mac68k/dev/grf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: grf.c,v 1.22 2002/10/29 18:30:21 art Exp $ */ +/* $OpenBSD: grf.c,v 1.23 2003/05/09 23:09:21 art Exp $ */ /* $NetBSD: grf.c,v 1.41 1997/02/24 06:20:04 scottr Exp $ */ /* @@ -369,7 +369,7 @@ grfmap(dev, addrp, p) vn.v_rdev = dev; /* XXX */ error = uvm_mmap(&p->p_vmspace->vm_map, (vm_offset_t *)addrp, - (vm_size_t)len, VM_PROT_ALL, VM_PROT_ALL, flags, (caddr_t)&vn, 0, + (vm_size_t)len, UVM_PROT_RW, UVM_PROT_RW, flags, (caddr_t)&vn, 0, p->p_rlimit[RLIMIT_MEMLOCK].rlim_cur); /* Offset into page: */ |