diff options
author | Steve Murphree <smurph@cvs.openbsd.org> | 1999-04-11 03:26:29 +0000 |
---|---|---|
committer | Steve Murphree <smurph@cvs.openbsd.org> | 1999-04-11 03:26:29 +0000 |
commit | 04af8df9079e2b38fd9e3e41e2d7fe6b592e9034 (patch) | |
tree | 61ec6a4e26dae125c98d06bb1839ed450b895fdf /sys/arch/mvme88k/dev | |
parent | 7711e18860b6eafe8c9d1f16ce36bbcab0d52614 (diff) |
Fix for 25 Mhz.
Diffstat (limited to 'sys/arch/mvme88k/dev')
-rw-r--r-- | sys/arch/mvme88k/dev/nvram.c | 27 |
1 files changed, 23 insertions, 4 deletions
diff --git a/sys/arch/mvme88k/dev/nvram.c b/sys/arch/mvme88k/dev/nvram.c index 61e9373411a..e231f8ef7ca 100644 --- a/sys/arch/mvme88k/dev/nvram.c +++ b/sys/arch/mvme88k/dev/nvram.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nvram.c,v 1.3 1999/01/11 05:11:43 millert Exp $ */ +/* $OpenBSD: nvram.c,v 1.4 1999/04/11 03:26:27 smurph Exp $ */ /* * Copyright (c) 1995 Theo de Raadt @@ -40,6 +40,7 @@ #include <sys/malloc.h> #include <machine/psl.h> #include <machine/autoconf.h> +#include <machine/bugio.h> #include <machine/cpu.h> #include <machine/mioctl.h> #include <machine/vmparam.h> @@ -70,13 +71,31 @@ int nvrammatch(parent, vcf, args) struct device *parent; void *vcf, *args; - { +{ + int ret; struct cfdata *cf = vcf; struct confargs *ca = args; - + struct bugrtc rtc; /*X*/ if (ca->ca_vaddr == (void *)-1) /*X*/ return (1); - return (!badvaddr(ca->ca_vaddr, 1)); + +#if 0 + bugrtcrd(&rtc); + ret = badvaddr(IIOV(ca->ca_vaddr), 1); + if (ret != 0) + ret = badvaddr(IIOV(ca->ca_vaddr), 2); + if (ret != 0) + ret = badvaddr(IIOV(ca->ca_vaddr), 4); + + if (ret != 0){ + printf("==> nvram: address 0x%x failed check\n", ca->ca_vaddr); + return(0); + } else + return(1); +#else + bugrtcrd(&rtc); + return(1); +#endif } void |