kernel/x86: add ability to set GS segment base from userland

Needed for Wine.

Co-authored-by: Jérôme Duval <[email protected]>

Change-Id: I13f6a5802fce04fd2ebb4cc01ecd2f12c90830db
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4839
Reviewed-by: Jérôme Duval <[email protected]>
Reviewed-by: X512 <[email protected]>
Reviewed-by: Fredrik Holmqvist <[email protected]>
Reviewed-by: waddlesplash <[email protected]>
Tested-by: Commit checker robot <[email protected]>
This commit is contained in:
X512
2022-03-09 18:28:00 +00:00
committed by waddlesplash
co-authored by Jérôme Duval
parent 397102c17d
commit b19f5c839b
4 changed files with 48 additions and 0 deletions
@@ -0,0 +1,13 @@
/*
* Copyright 2022, The Haiku Team. All rights reserved.
* Distributed under the terms of the MIT License.
*/
#ifndef _X86_THREAD_DEFS_H
#define _X86_THREAD_DEFS_H
#define THREAD_SYSCALLS "thread"
#define THREAD_SET_GS_BASE 1
#endif /* _X86_THREAD_DEFS_H */