From 6c4cc56664d6025656cf489287cdd4edcd05bf5b Mon Sep 17 00:00:00 2001 From: jhb Date: Wed, 6 Nov 2002 19:42:59 +0000 Subject: 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. --- sys/dev/asr/asr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/dev/asr/asr.c') 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)); -- cgit v1.1