mirror of
https://review.haiku-os.org/haiku
synced 2025-01-31 10:47:14 +01:00
4f7b9506fd
This reverts commit 458e758f3792ef11ca26d6ff7e24600c88326e83. This reverts commit ce5eb94a82b1b377ef5909e65411e031f54ceb15. This reverts commit aac8d4c317ca11a9a6e194e2c668e8183ec23dd6. This reverts commit c70cba914aa79c01bbc2da38085936f589899c8c. This reverts commit 2ffbe7aaca8668c5a68ac7488459bace7a0700f2 This reverts commit c6e120e2d2f909d95f95839fa99fccf811fdb3c5.
49 lines
1.4 KiB
C
49 lines
1.4 KiB
C
/*
|
|
* Copyright 2002-2007, Axel Dörfler, axeld@pinc-software.de.
|
|
* Distributed under the terms of the MIT License.
|
|
*
|
|
* Copyright 2001-2002, Travis Geiselbrecht. All rights reserved.
|
|
* Distributed under the terms of the NewOS License.
|
|
*/
|
|
#ifndef KERNEL_ARCH_THREAD_H
|
|
#define KERNEL_ARCH_THREAD_H
|
|
|
|
|
|
#include <thread_types.h>
|
|
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
status_t arch_thread_init(struct kernel_args *args);
|
|
status_t arch_team_init_team_struct(Team *t, bool kernel);
|
|
status_t arch_thread_init_thread_struct(Thread *t);
|
|
status_t arch_thread_init_tls(Thread *thread);
|
|
void arch_thread_context_switch(Thread *t_from, Thread *t_to);
|
|
void arch_thread_init_kthread_stack(Thread *thread, void *stack,
|
|
void *stackTop, void (*function)(void*), const void *data);
|
|
void arch_thread_dump_info(void *info);
|
|
status_t arch_thread_enter_userspace(Thread *t, addr_t entry,
|
|
void *args1, void *args2);
|
|
|
|
bool arch_on_signal_stack(Thread *thread);
|
|
status_t arch_setup_signal_frame(Thread *thread, struct sigaction *action,
|
|
struct signal_frame_data *signalFrameData);
|
|
int64 arch_restore_signal_frame(struct signal_frame_data* signalFrameData);
|
|
|
|
void arch_store_fork_frame(struct arch_fork_arg *arg);
|
|
void arch_restore_fork_frame(struct arch_fork_arg *arg);
|
|
|
|
#define arch_syscall_64_bit_return_value()
|
|
// overridden by architectures that need special handling
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
// for any inline overrides
|
|
#include <arch_thread.h>
|
|
|
|
#endif /* KERNEL_ARCH_THREAD_H */
|