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
@@ -48,6 +48,8 @@ struct arch_thread {
uintptr_t* current_stack;
uintptr_t instruction_pointer;
uint64 user_gs_base;
#else
struct farcall current_stack;
struct farcall interrupt_stack;