aboutsummaryrefslogtreecommitdiff
path: root/sys/i386/i386/mem.c
diff options
context:
space:
mode:
authorRobert Noland <rnoland@FreeBSD.org>2009-12-29 21:51:28 +0000
committerRobert Noland <rnoland@FreeBSD.org>2009-12-29 21:51:28 +0000
commitcfd7bacef28efb62a65a679e3e879078e7932b36 (patch)
treeffed01a3f1f97aa245caf60848edab318a53aef9 /sys/i386/i386/mem.c
parent723bd8c6b5225ae6ebc947e365194fa75dde548b (diff)
downloadsrc-cfd7bacef28efb62a65a679e3e879078e7932b36.tar.gz
src-cfd7bacef28efb62a65a679e3e879078e7932b36.zip
Update d_mmap() to accept vm_ooffset_t and vm_memattr_t.
This replaces d_mmap() with the d_mmap2() implementation and also changes the type of offset to vm_ooffset_t. Purge d_mmap2(). All driver modules will need to be rebuilt since D_VERSION is also bumped. Reviewed by: jhb@ MFC after: Not in this lifetime...
Notes
Notes: svn path=/head/; revision=201223
Diffstat (limited to 'sys/i386/i386/mem.c')
-rw-r--r--sys/i386/i386/mem.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/i386/i386/mem.c b/sys/i386/i386/mem.c
index b2deab21c7e4..11bfc37cfbe4 100644
--- a/sys/i386/i386/mem.c
+++ b/sys/i386/i386/mem.c
@@ -163,8 +163,8 @@ memrw(struct cdev *dev, struct uio *uio, int flags)
*/
/* ARGSUSED */
int
-memmmap(struct cdev *dev, vm_offset_t offset, vm_paddr_t *paddr,
- int prot __unused)
+memmmap(struct cdev *dev, vm_ooffset_t offset, vm_paddr_t *paddr,
+ int prot __unused, vm_memattr_t *memattr __unused)
{
if (dev2unit(dev) == CDEV_MINOR_MEM)
*paddr = offset;