From b6d9e06815177a68a4c04bd91f2c72a3d8f38085 Mon Sep 17 00:00:00 2001 From: dfr Date: Sun, 8 Nov 1998 12:39:07 +0000 Subject: * Fix a couple of places in the device pager where an address was truncated to 32 bits. * Change the calling convention of the device mmap entry point to pass a vm_offset_t instead of an int for the offset allowing devices with a larger memory map than (1<<32) to be supported on the alpha (/dev/mem is one such). These changes are required to allow the X server to mmap the various I/O regions used for device port and memory access on the alpha. --- sys/i386/isa/pcvt/pcvt_drv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/i386/isa/pcvt') diff --git a/sys/i386/isa/pcvt/pcvt_drv.c b/sys/i386/isa/pcvt/pcvt_drv.c index 0fd7e84..99217c0 100644 --- a/sys/i386/isa/pcvt/pcvt_drv.c +++ b/sys/i386/isa/pcvt/pcvt_drv.c @@ -770,7 +770,7 @@ do_standard: } int -pcmmap(Dev_t dev, int offset, int nprot) +pcmmap(Dev_t dev, vm_offset_t offset, int nprot) { if (offset > 0x20000 - PAGE_SIZE) return -1; -- cgit v1.1