From e88a0f088522cfbf5fa79bfd4e5dac1d46194f13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Mon, 25 Oct 2004 22:30:44 +0000 Subject: [PATCH] thread_init() now calls the new arch_thread_init() function. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9509 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kernel/core/thread.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/kernel/core/thread.c b/src/kernel/core/thread.c index 5a1ccf79be..5d4f680924 100644 --- a/src/kernel/core/thread.c +++ b/src/kernel/core/thread.c @@ -1053,7 +1053,7 @@ thread_dequeue_id(struct thread_queue *q, thread_id thr_id) status_t -thread_init(kernel_args *ka) +thread_init(kernel_args *args) { struct thread *t; unsigned int i; @@ -1074,8 +1074,11 @@ thread_init(kernel_args *ka) return sSnoozeSem; } + if (arch_thread_init(args) < B_OK) + panic("arch_thread_init() failed!\n"); + // create an idle thread for each cpu - for (i = 0; i < ka->num_cpus; i++) { + for (i = 0; i < args->num_cpus; i++) { char temp[64]; vm_region *region;