summaryrefslogtreecommitdiff
path: root/kern
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2008-07-23 23:38:52 +0000
committerThomas Schwinge <tschwinge@gnu.org>2009-06-18 00:27:18 +0200
commit9640c4dba6b4a8f5e01b2b67fc47a836818bc38d (patch)
tree821759afd42703c37e0d723e58a67830746d1cfd /kern
parent482cc1b78fae30281528145098ab8d9908d5fafe (diff)
2008-07-23 Barry deFreese <bddebian@comcast.net>
* 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.
Diffstat (limited to 'kern')
-rw-r--r--kern/bootstrap.c2
-rw-r--r--kern/exception.c2
-rw-r--r--kern/ipc_tt.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/kern/bootstrap.c b/kern/bootstrap.c
index ac95393..235aa7b 100644
--- a/kern/bootstrap.c
+++ b/kern/bootstrap.c
@@ -435,7 +435,7 @@ read_exec(void *handle, vm_offset_t file_ofs, vm_size_t file_size,
if (file_size > 0)
{
err = copyout((char *)phystokv (mod->mod_start) + file_ofs,
- mem_addr, file_size);
+ (void *)mem_addr, file_size);
assert(err == 0);
}
diff --git a/kern/exception.c b/kern/exception.c
index 258fedf..453a075 100644
--- a/kern/exception.c
+++ b/kern/exception.c
@@ -693,7 +693,7 @@ exception_raise(dest_port, thread_port, task_port,
ikm_check_initialized(kmsg, kmsg->ikm_size);
assert(kmsg->ikm_size == IKM_SAVED_KMSG_SIZE);
- if (copyoutmsg((vm_offset_t) &kmsg->ikm_header, (vm_offset_t)receiver->ith_msg,
+ if (copyoutmsg(&kmsg->ikm_header, receiver->ith_msg,
sizeof(struct mach_exception)) ||
(ikm_cache() != IKM_NULL)) {
mr = ipc_kmsg_put(receiver->ith_msg, kmsg,
diff --git a/kern/ipc_tt.c b/kern/ipc_tt.c
index e14ebac..de4edc6 100644
--- a/kern/ipc_tt.c
+++ b/kern/ipc_tt.c
@@ -833,7 +833,7 @@ mach_ports_register(
*/
for (i = 0; i < portsCnt; i++)
- ports[i] = memory[i];
+ ports[i] = (ipc_port_t)memory[i];
for (; i < TASK_PORT_REGISTER_MAX; i++)
ports[i] = IP_NULL;