From 9640c4dba6b4a8f5e01b2b67fc47a836818bc38d Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Wed, 23 Jul 2008 23:38:52 +0000 Subject: 2008-07-23 Barry deFreese * i386/i386/locore.h (copyinmsg, copyoutmsg): Make parameters const void* and void* instead of vm_offset_t. * i386/i386at/com.c (comportdeath): Cast port as ipc_port_t in tty_portdeath call. * i386/i386at/kd.c (kdportdeath): Likewise. * i386/i386at/lpr.c (lprportdeath): Likewise. * i386/i386at/kd_mouse.c (mouse_handle_byte): Cast param to wakeup() as vm_offset_t. * i386/intel/pmap.c (pmap_destroy): Cast arg 2 of kmem_free() to vm_offset_t. * i386/intel/pmap.h: Cast all arg 1 params to kvtophy() to vm_offset_t. * ipc/ipc_kmsg.c: Remove casts from params to copyinmsg and copyoutmsg calls. * ipc/mach_msg.c: Likewise. * kern/exceptions.c: Likewise. * ipc/mach_msg.c: Remove casts from params to copyout calls. * ipc/bootstrap.c: Likewise. * kern/ipc_tt.c (mach_ports_register): Cast memory[i] as ipc_port_t in assignment. --- i386/i386at/com.c | 2 +- i386/i386at/kd.c | 2 +- i386/i386at/kd_mouse.c | 2 +- i386/i386at/lpr.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'i386/i386at') diff --git a/i386/i386at/com.c b/i386/i386at/com.c index a4cfbf8..4ba625d 100644 --- a/i386/i386at/com.c +++ b/i386/i386at/com.c @@ -433,7 +433,7 @@ io_return_t comportdeath(dev, port) dev_t dev; mach_port_t port; { - return (tty_portdeath(&com_tty[minor(dev)], port)); + return (tty_portdeath(&com_tty[minor(dev)], (ipc_port_t)port)); } io_return_t diff --git a/i386/i386at/kd.c b/i386/i386at/kd.c index 8975ad1..a0a36b7 100644 --- a/i386/i386at/kd.c +++ b/i386/i386at/kd.c @@ -590,7 +590,7 @@ kdportdeath(dev, port) dev_t dev; mach_port_t port; { - return (tty_portdeath(&kd_tty, port)); + return (tty_portdeath(&kd_tty, (ipc_port_t)port)); } /*ARGSUSED*/ diff --git a/i386/i386at/kd_mouse.c b/i386/i386at/kd_mouse.c index 94ebd79..0b4acc2 100644 --- a/i386/i386at/kd_mouse.c +++ b/i386/i386at/kd_mouse.c @@ -603,7 +603,7 @@ mouse_handle_byte(ch) mousebuf[mousebufindex++] = ch; if (mouse_char_wanted) { mouse_char_wanted = FALSE; - wakeup(&mousebuf); + wakeup((vm_offset_t)&mousebuf); } return; } diff --git a/i386/i386at/lpr.c b/i386/i386at/lpr.c index ee8e721..07e8414 100644 --- a/i386/i386at/lpr.c +++ b/i386/i386at/lpr.c @@ -203,7 +203,7 @@ lprportdeath(dev, port) dev_t dev; mach_port_t port; { - return (tty_portdeath(&lpr_tty[minor(dev)], port)); + return (tty_portdeath(&lpr_tty[minor(dev)], (ipc_port_t)port)); } io_return_t -- cgit v1.2.3