mach_exception_subcode_t subcode,
int *ux_signal, mach_exception_code_t *ux_code);
mach_exception_subcode_t subcode,
int *ux_signal, mach_exception_code_t *ux_code);
- if (mach_exc_server(&exc_msg.Head, &rep_msg.Head))
- (void) mach_msg_send(&rep_msg.Head, MACH_SEND_MSG,
+ if (mach_exc_server(&exc_msg.Head, &rep_msg.Head)) {
+ result = mach_msg_send(&rep_msg.Head, MACH_SEND_MSG,
- (void) kernel_thread(kernel_task, ux_handler);
+ (void) kernel_thread_start((thread_continue_t)ux_handler, NULL, &thread);
+ thread_deallocate(thread);
proc_list_lock();
if (ux_exception_port == MACH_PORT_NULL) {
(void)msleep(&ux_exception_port, proc_list_mlock, 0, "ux_handler_wait", 0);
proc_list_lock();
if (ux_exception_port == MACH_PORT_NULL) {
(void)msleep(&ux_exception_port, proc_list_mlock, 0, "ux_handler_wait", 0);
- mach_port_name_t thread_name = (mach_port_name_t)thread; /* XXX */
- mach_port_name_t task_name = (mach_port_name_t)task; /* XXX */
+ mach_port_name_t thread_name = CAST_MACH_PORT_TO_NAME(thread);
+ mach_port_name_t task_name = CAST_MACH_PORT_TO_NAME(task);