X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/de355530ae67247cbd0da700edb3a2a1dae884c2..5eebf7385fedb1517b66b53c28e5aa6bb0a2be50:/bsd/uxkern/ux_exception.c diff --git a/bsd/uxkern/ux_exception.c b/bsd/uxkern/ux_exception.c index 2b6a4750d..655634a46 100644 --- a/bsd/uxkern/ux_exception.c +++ b/bsd/uxkern/ux_exception.c @@ -154,15 +154,9 @@ ux_handler(void) void ux_handler_init(void) { - task_t handler_task; - simple_lock_init(&ux_handler_init_lock); ux_exception_port = MACH_PORT_NULL; - if (kernel_task_create(kernel_task, - 0, 0, &handler_task) != MACH_MSG_SUCCESS) { - panic("Failed to created ux handler task\n"); - } - (void) kernel_thread(handler_task, ux_handler); + (void) kernel_thread(kernel_task, ux_handler); simple_lock(&ux_handler_init_lock); if (ux_exception_port == MACH_PORT_NULL) { simple_unlock(&ux_handler_init_lock);