From 199165fe0deee0777f7b9f8647c0fd875743e02f Mon Sep 17 00:00:00 2001 From: leo Date: Mon, 18 May 1998 12:06:46 +0000 Subject: [PATCH] Fix errors when compiling for M68030 only. (Witek Wnuk) --- sys/arch/atari/atari/bus.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/sys/arch/atari/atari/bus.c b/sys/arch/atari/atari/bus.c index be961c0c212a..453ff1f96ead 100644 --- a/sys/arch/atari/atari/bus.c +++ b/sys/arch/atari/atari/bus.c @@ -1,4 +1,4 @@ -/* $NetBSD: bus.c,v 1.3 1998/05/11 07:46:15 leo Exp $ */ +/* $NetBSD: bus.c,v 1.4 1998/05/18 12:06:46 leo Exp $ */ /*- * Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -336,13 +336,10 @@ bus_dmamap_sync(t, map, off, len, ops) bus_size_t len; int ops; { +#if defined(M68040) || defined(M68060) int i, pa_off, inc, seglen; u_long pa, end_pa; -#if !defined(M68040) && !defined(M68060) - return; -#endif - if (t == BUS_PCI_DMA_TAG) pa_off = 0x80000000; /* XXX */ else pa_off = 0; @@ -377,6 +374,7 @@ bus_dmamap_sync(t, map, off, len, ops) } } } +#endif } /*