diff --git a/sys/arch/next68k/dev/mb8795.c b/sys/arch/next68k/dev/mb8795.c index a5dc8c50d1cb..de4a545742de 100644 --- a/sys/arch/next68k/dev/mb8795.c +++ b/sys/arch/next68k/dev/mb8795.c @@ -1,4 +1,4 @@ -/* $NetBSD: mb8795.c,v 1.5 1998/07/05 06:49:07 jonathan Exp $ */ +/* $NetBSD: mb8795.c,v 1.6 1998/07/11 07:06:16 dbj Exp $ */ /* * Copyright (c) 1998 Darrin B. Jewell * All rights reserved. @@ -741,7 +741,12 @@ mb8795_start(ifp) u_char txstat; txstat = bus_space_read_1(sc->sc_bst,sc->sc_bsh, XE_TXSTAT); if (!(txstat & XE_TXSTAT_READY)) { - panic("%s: transmitter not ready\n", sc->sc_dev.dv_xname); + /* @@@ I used to panic here, but then it paniced once. + * Let's see if I can just reset instead. [ dbj 980706.1900 ] + */ + printf("%s: transmitter not ready\n", sc->sc_dev.dv_xname); + mb8795_reset(sc); + return; } } #endif @@ -1044,7 +1049,7 @@ mb8795_rxdma_continue(arg) } #if (defined(DIAGNOSTIC)) else { - panic("%s: out of receive DMA buffers\n",sc->sc_dev.dv_xname); + printf("%s: out of receive DMA buffers\n",sc->sc_dev.dv_xname); } #endif diff --git a/sys/arch/next68k/dev/zs.c b/sys/arch/next68k/dev/zs.c index 42c4e84286fd..e971607657eb 100644 --- a/sys/arch/next68k/dev/zs.c +++ b/sys/arch/next68k/dev/zs.c @@ -1,4 +1,4 @@ -/* $NetBSD: zs.c,v 1.2 1998/07/04 22:18:33 jonathan Exp $ */ +/* $NetBSD: zs.c,v 1.3 1998/07/11 07:06:16 dbj Exp $ */ /*- * Copyright (c) 1996 The NetBSD Foundation, Inc. @@ -91,7 +91,11 @@ int zs_major = 12; /* * The NeXT provides a 3.686400 MHz clock to the ZS chips. */ +#if 1 #define PCLK (57600*4*16) /* PCLK pin input clock rate */ +#else +#define PCLK 10000000 +#endif #define ZS_DELAY() delay(2) diff --git a/sys/arch/next68k/next68k/nextrom.c b/sys/arch/next68k/next68k/nextrom.c index b4943c5759ff..8062203caf0d 100644 --- a/sys/arch/next68k/next68k/nextrom.c +++ b/sys/arch/next68k/next68k/nextrom.c @@ -1,4 +1,4 @@ -/* $NetBSD: nextrom.c,v 1.3 1998/07/04 05:36:05 dbj Exp $ */ +/* $NetBSD: nextrom.c,v 1.4 1998/07/11 07:06:17 dbj Exp $ */ /* * Copyright (c) 1998 Darrin B. Jewell * All rights reserved. @@ -38,7 +38,6 @@ void next68k_bootargs __P((unsigned char *args[])); -void dbj_message __P((char * s)); int mon_getc(void); int mon_putc(int c); @@ -153,6 +152,12 @@ next68k_bootargs(args) j++; } } + + /* The NeXT ROM or something appears to reserve the very + * top of memory + */ + RELOC(phys_seg_list[j-1].ps_end, vm_offset_t) -= 0x2000; + /* pmap is unhappy if it is not null terminated */ for(;j