From 63be222e2f616feba7ac513c0e3217300e923b72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Mon, 25 Oct 2004 22:08:48 +0000 Subject: [PATCH] Added a arch_thread_init() function prototype. Changed return types to status_t where appropriate. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9507 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/private/kernel/arch/thread.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/headers/private/kernel/arch/thread.h b/headers/private/kernel/arch/thread.h index 59928c90a4..8a094a3a12 100644 --- a/headers/private/kernel/arch/thread.h +++ b/headers/private/kernel/arch/thread.h @@ -14,11 +14,12 @@ extern "C" { #endif -int arch_team_init_team_struct(struct team *t, bool kernel); -int arch_thread_init_thread_struct(struct thread *t); +status_t arch_thread_init(struct kernel_args *args); +status_t arch_team_init_team_struct(struct team *t, bool kernel); +status_t arch_thread_init_thread_struct(struct thread *t); void arch_thread_init_tls(struct thread *thread); void arch_thread_context_switch(struct thread *t_from, struct thread *t_to); -int arch_thread_init_kthread_stack(struct thread *t, int (*start_func)(void), void (*entry_func)(void), void (*exit_func)(void)); +status_t arch_thread_init_kthread_stack(struct thread *t, int (*start_func)(void), void (*entry_func)(void), void (*exit_func)(void)); void arch_thread_dump_info(void *info); void arch_thread_enter_uspace(struct thread *t, addr_t entry, void *args1, void *args2); void arch_thread_switch_kstack_and_call(struct thread *t, addr_t new_kstack, void (*func)(void *), void *arg);