summaryrefslogtreecommitdiffstats
path: root/sys/dev/asr
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2002-11-06 19:42:59 +0000
committerjhb <jhb@FreeBSD.org>2002-11-06 19:42:59 +0000
commit6c4cc56664d6025656cf489287cdd4edcd05bf5b (patch)
treecafe3dd104025a3288d9cb15f07db631108767b3 /sys/dev/asr
parent1d44bd117ed3bd2164108a1fee3ef8f9bc031780 (diff)
downloadFreeBSD-src-6c4cc56664d6025656cf489287cdd4edcd05bf5b.zip
FreeBSD-src-6c4cc56664d6025656cf489287cdd4edcd05bf5b.tar.gz
Use a bandaid to fix a warning. However, this driver is very, very far
from being MI in any fashion. It currently "assumes" that it can get a kernel virtual address for a phyiscal address by adding KERNBASE to the physical address. It also tries to read values out of a the PC BIOS on all archs. It also uses "manual" inb() and outb()'s to talk to the mcclock device which just happens to be at that location on both i386 and alpha. This driver should likely be i386-only.
Diffstat (limited to 'sys/dev/asr')
-rw-r--r--sys/dev/asr/asr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/asr/asr.c b/sys/dev/asr/asr.c
index 62fdaa0..85d1075 100644
--- a/sys/dev/asr/asr.c
+++ b/sys/dev/asr/asr.c
@@ -4461,7 +4461,7 @@ asr_ioctl(
sysInfo_S Info;
char * cp;
/* Kernel Specific ptok `hack' */
-# define ptok(a) ((char *)(a) + KERNBASE)
+# define ptok(a) ((char *)(uintptr_t)(a) + KERNBASE)
bzero (&Info, sizeof(Info));
OpenPOWER on IntegriCloud