summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2001-11-05 19:45:35 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2001-11-05 19:45:35 +0000
commitee08c0732f8abf5548354a548f8f73d9252649e1 (patch)
tree3fe1b489eabd2df7a812fbab78eec00eb18e1fb6 /sys/arch
parentbd18bc8330a62c698c1589c177f8a76fe51571bc (diff)
Fallout from the mmap changes.
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/mvme68k/dev/vmel.c4
-rw-r--r--sys/arch/mvme68k/dev/vmes.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/arch/mvme68k/dev/vmel.c b/sys/arch/mvme68k/dev/vmel.c
index aba946017de..b27ccdec6c1 100644
--- a/sys/arch/mvme68k/dev/vmel.c
+++ b/sys/arch/mvme68k/dev/vmel.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vmel.c,v 1.6 2001/11/01 12:13:46 art Exp $ */
+/* $OpenBSD: vmel.c,v 1.7 2001/11/05 19:45:34 art Exp $ */
/*
* Copyright (c) 1995 Theo de Raadt
@@ -165,7 +165,7 @@ vmelmmap(dev, off, prot)
struct vmelsoftc *sc = (struct vmelsoftc *) vmel_cd.cd_devs[unit];
void * pa;
- pa = vmepmap(sc->sc_vme, (void *)off, NBPG, BUS_VMEL);
+ pa = vmepmap(sc->sc_vme, (void *)(int)off, NBPG, BUS_VMEL);
printf("vmel %x pa %x\n", off, pa);
if (pa == NULL)
return (-1);
diff --git a/sys/arch/mvme68k/dev/vmes.c b/sys/arch/mvme68k/dev/vmes.c
index fa79cc6e4a5..ff97ad2831f 100644
--- a/sys/arch/mvme68k/dev/vmes.c
+++ b/sys/arch/mvme68k/dev/vmes.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vmes.c,v 1.7 2001/11/01 12:13:46 art Exp $ */
+/* $OpenBSD: vmes.c,v 1.8 2001/11/05 19:45:34 art Exp $ */
/*
* Copyright (c) 1995 Theo de Raadt
@@ -165,7 +165,7 @@ vmesmmap(dev, off, prot)
struct vmessoftc *sc = (struct vmessoftc *) vmes_cd.cd_devs[unit];
void * pa;
- pa = vmepmap(sc->sc_vme, (void *)off, NBPG, BUS_VMES);
+ pa = vmepmap(sc->sc_vme, (void *)(int)off, NBPG, BUS_VMES);
if (pa == NULL)
return (-1);
return (m68k_btop(pa));