From 9745684ebe151a825bdef45d38da2ef82fc893d1 Mon Sep 17 00:00:00 2001 From: augustss Date: Sun, 27 Jul 1997 01:16:32 +0000 Subject: 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. --- sys/compat/linux/linux_misc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sys/compat/linux/linux_misc.c') diff --git a/sys/compat/linux/linux_misc.c b/sys/compat/linux/linux_misc.c index ba0a5f94d32..689533b9686 100644 --- a/sys/compat/linux/linux_misc.c +++ b/sys/compat/linux/linux_misc.c @@ -1,4 +1,4 @@ -/* $NetBSD: linux_misc.c,v 1.30 1997/04/07 14:13:16 augustss Exp $ */ +/* $NetBSD: linux_misc.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; -- cgit cdfd1b22ff1518ccf'>treecommitdiff
path: root/games/hack/help
AgeCommit message (Expand)Author
2002-12-15fix confusion between east and west for y,u,b, and n.pooka