summaryrefslogtreecommitdiff
path: root/sys/compat/linux/common/linux_break.c
diff options
context:
space:
mode:
authoraugustss <augustss@NetBSD.org>1997-07-27 01:16:32 +0000
committeraugustss <augustss@NetBSD.org>1997-07-27 01:16:32 +0000
commit9745684ebe151a825bdef45d38da2ef82fc893d1 (patch)
tree9fc1a39eeab95505d742a8f6fe2003dc0381e354 /sys/compat/linux/common/linux_break.c
parent3ca46d33e107a26b997c048032ddeacf5270b46f (diff)
Changes to the sudio system:
- It is now possible to handle devices that want "looping" DMA, e.g. the SoundBlaster correctly. The WSS and SB drivers use this. To do this several new methods were introduced in audio_hw_if. - Different silence handling (forced by previous change). - The audio driver can now be mmap()-ed, but due to problems in the VM system only for writing for now. - The OSS (Linux) audio emulation takes advantage of some of the new features.
Diffstat (limited to 'sys/compat/linux/common/linux_break.c')
-rw-r--r--sys/compat/linux/common/linux_break.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/compat/linux/common/linux_break.c b/sys/compat/linux/common/linux_break.c
index 5643cccbd6c..f59e68ab0ff 100644
--- a/sys/compat/linux/common/linux_break.c
+++ b/sys/compat/linux/common/linux_break.c
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_break.c,v 1.30 1997/04/07 14:13:16 augustss Exp $ */
+/* $NetBSD: linux_break.c,v 1.31 1997/07/27 01:16:39 augustss Exp $ */
/*
* Copyright (c) 1995 Frank van der Linden
@@ -502,6 +502,8 @@ linux_sys_mmap(p, v, retval)
SCARG(&cma,addr) = lmap.lm_addr;
SCARG(&cma,len) = lmap.lm_len;
+ if (lmap.lm_prot & VM_PROT_WRITE) /* XXX */
+ lmap.lm_prot |= VM_PROT_READ;
SCARG(&cma,prot) = lmap.lm_prot;
SCARG(&cma,flags) = flags;
SCARG(&cma,fd) = lmap.lm_fd;