summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Bugaev <bugaevc@gmail.com>2023-05-15 10:44:34 +0300
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2023-05-15 18:31:26 +0200
commitb16f119edb80e913fdd60fc3bf381afb504509fd (patch)
tree24bd0b328719279c5905a96e7ebd947e70421ae6
parent8cc2ed2eeca01c46c04682939d0ecd34927cde7b (diff)
x86_64: Fix reporting fsgs base in thread_get_state ()
Fixes 31dd30a94a682955c3c9e2f42252b4a07687067a "add setting gs/fsbase". Message-Id: <20230515074434.1351060-1-bugaevc@gmail.com>
-rw-r--r--i386/i386/pcb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/i386/i386/pcb.c b/i386/i386/pcb.c
index a5efb9a8..fb535709 100644
--- a/i386/i386/pcb.c
+++ b/i386/i386/pcb.c
@@ -873,7 +873,7 @@ kern_return_t thread_getstatus(
state = (struct i386_fsgs_base_state *) tstate;
state->fs_base = thread->pcb->iss.fsbase;
- state->fs_base = thread->pcb->iss.gsbase;
+ state->gs_base = thread->pcb->iss.gsbase;
*count = i386_FSGS_BASE_STATE_COUNT;
break;
}