2 * Copyright 2010, Ingo Weinhold, ingo_weinhold@gmx.de.
3 * Distributed under the terms of the MIT License.
5 #ifndef _KERNEL_ARCH_X86_SYSCALLS_H
6 #define _KERNEL_ARCH_X86_SYSCALLS_H
9 #include <SupportDefs.h>
12 void x86_initialize_syscall();
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.
29 extern void (*gX86SetSyscallStack
)(addr_t stackTop
);
33 x86_set_syscall_stack(addr_t stackTop
)
35 if (gX86SetSyscallStack
!= NULL
)
36 gX86SetSyscallStack(stackTop
);
42 #endif // _KERNEL_ARCH_X86_SYSCALLS_H