From d06db4b7dab78bfade6f97f53b976cd4bd6fce8b Mon Sep 17 00:00:00 2001 From: thorpej Date: Sun, 5 Dec 1999 18:40:46 +0000 Subject: I have the feeling that OpenBSD has never tried the 53c825a, 53c875, 53c875j, 53c885, 53c895, or 53c896 on big-endian systems. --- sys/dev/pci/ncr.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'sys/dev') diff --git a/sys/dev/pci/ncr.c b/sys/dev/pci/ncr.c index cfe22367ab2..97efecb14d9 100644 --- a/sys/dev/pci/ncr.c +++ b/sys/dev/pci/ncr.c @@ -1,4 +1,4 @@ -/* $NetBSD: ncr.c,v 1.88 1999/12/05 18:25:18 thorpej Exp $ */ +/* $NetBSD: ncr.c,v 1.89 1999/12/05 18:40:46 thorpej Exp $ */ /************************************************************************** ** @@ -337,15 +337,15 @@ bus_space_write_4 (np->sc_st, np->sc_sh, (o), (val)) #define READSCRIPT_OFF(base, off) \ - SCR_BO(base ? *((INT32 *)((char *)base + (off))) : \ - bus_space_read_4 (np->ram_tag, np->ram_handle, off)) + (base ? SCR_BO(*((INT32 *)((char *)base + (off)))) : \ + bus_space_read_4 (np->ram_tag, np->ram_handle, off)) #define WRITESCRIPT_OFF(base, off, val) \ do { \ if (base) \ *((INT32 *)((char *)base + (off))) = (SCR_BO(val)); \ else \ - bus_space_write_4 (np->ram_tag, np->ram_handle, off, SCR_BO(val)); \ + bus_space_write_4 (np->ram_tag, np->ram_handle, off, (val)); \ } while (0) #define READSCRIPT(r) \ @@ -1518,7 +1518,7 @@ static int read_tekram_eeprom #if 0 static char ident[] = - "\n$NetBSD: ncr.c,v 1.88 1999/12/05 18:25:18 thorpej Exp $\n"; + "\n$NetBSD: ncr.c,v 1.89 1999/12/05 18:40:46 thorpej Exp $\n"; #endif static const u_long ncr_version = NCR_VERSION * 11 -- cgit