headers/bsd: Add sys/queue.h.
[haiku.git] / src / system / kernel / arch / x86 / x86_syscalls.h
blob85ae6d78788acc23ac31b9ddbbb8c4017ea04a68
1 /*
2 * Copyright 2010, Ingo Weinhold, ingo_weinhold@gmx.de.
3 * Distributed under the terms of the MIT License.
4 */
5 #ifndef _KERNEL_ARCH_X86_SYSCALLS_H
6 #define _KERNEL_ARCH_X86_SYSCALLS_H
9 #include <SupportDefs.h>
12 void x86_initialize_syscall();
15 #ifdef __x86_64__
18 static inline void
19 x86_set_syscall_stack(addr_t stackTop)
21 // Nothing to do here, the thread's stack pointer is always accessible
22 // via the GS segment.
26 #else
29 extern void (*gX86SetSyscallStack)(addr_t stackTop);
32 static inline void
33 x86_set_syscall_stack(addr_t stackTop)
35 if (gX86SetSyscallStack != NULL)
36 gX86SetSyscallStack(stackTop);
40 #endif // __x86_64__
42 #endif // _KERNEL_ARCH_X86_SYSCALLS_H