summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2004-01-01 19:59:23 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2004-01-01 19:59:23 +0000
commit00659d6d01ce4d057575b2427396af8917e77f56 (patch)
tree00b2245cd42d3732a6e79dc302bb57455d082848
parent2e8927f118e4745c79f7186e99157fc89735922f (diff)
Oops, commited from the wrong tree.
-rw-r--r--sys/arch/mvme88k/dev/sram.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/sys/arch/mvme88k/dev/sram.c b/sys/arch/mvme88k/dev/sram.c
index 298ba19b1c2..c56d894e4a7 100644
--- a/sys/arch/mvme88k/dev/sram.c
+++ b/sys/arch/mvme88k/dev/sram.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sram.c,v 1.12 2004/01/01 01:51:32 miod Exp $ */
+/* $OpenBSD: sram.c,v 1.13 2004/01/01 19:59:22 miod Exp $ */
/*
* Copyright (c) 1995 Theo de Raadt
@@ -38,6 +38,8 @@
#include <machine/cpu.h>
#include <machine/mioctl.h>
+#include <mvme88k/dev/memdevs.h>
+
#include <uvm/uvm_extern.h>
struct sramsoftc {
@@ -63,9 +65,7 @@ srammatch(parent, vcf, args)
struct device *parent;
void *vcf, *args;
{
- struct cfdata *cf = vcf;
struct confargs *ca = args;
- int ret;
if (brdtyp != BRD_187) /* The only one... */
return (0);
@@ -73,7 +73,7 @@ srammatch(parent, vcf, args)
ca->ca_paddr = (void *)0xffe00000;
ca->ca_vaddr = (void *)0xffe00000;
- return (!badvaddr(ca->ca_vaddr, 1))
+ return (!badvaddr((vaddr_t)ca->ca_vaddr, 1));
}
void
@@ -83,8 +83,6 @@ sramattach(parent, self, args)
{
struct confargs *ca = args;
struct sramsoftc *sc = (struct sramsoftc *)self;
- struct mcreg *mc;
- int i;
switch (brdtyp) {
#ifdef MVME187