From b53939be13a39a74c98f37365e5af0d62497e216 Mon Sep 17 00:00:00 2001 From: abs Date: Sat, 15 Nov 2008 21:35:31 +0000 Subject: [PATCH] To be safe, do not use DMA for Falcon - from Tuomo --- sys/arch/atari/dev/ncr5380.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/sys/arch/atari/dev/ncr5380.c b/sys/arch/atari/dev/ncr5380.c index 64ff2e926acb..48d27e039dd8 100644 --- a/sys/arch/atari/dev/ncr5380.c +++ b/sys/arch/atari/dev/ncr5380.c @@ -1,4 +1,4 @@ -/* $NetBSD: ncr5380.c,v 1.56 2008/10/28 11:44:14 abs Exp $ */ +/* $NetBSD: ncr5380.c,v 1.57 2008/11/15 21:35:31 abs Exp $ */ /* * Copyright (c) 1995 Leo Weppelman. @@ -31,7 +31,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: ncr5380.c,v 1.56 2008/10/28 11:44:14 abs Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ncr5380.c,v 1.57 2008/11/15 21:35:31 abs Exp $"); /* * Bit mask of targets you want debugging to be shown @@ -1816,6 +1816,12 @@ SC_REQ *reqp; u_long req_len; struct dma_chain *dm; + /* + * To be safe, do not use DMA for Falcon + */ + if (machineid & ATARI_FALCON) + return (0); + /* * Initialize locals and requests' DMA-chain. */