aboutsummaryrefslogtreecommitdiff
path: root/x86_64/cswitch.S
diff options
context:
space:
mode:
authorDamien Zammit <damien@zamaudio.com>2023-09-25 00:24:01 +0000
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2023-09-25 10:19:58 +0200
commitbe0abe4c2361f2c7db5a52b0900e298083fefe40 (patch)
treea56307a5e556d89f59ea3fc73841e604a3847dc0 /x86_64/cswitch.S
parentbf1cd17a446cb99668d4398473e15b5613086ff5 (diff)
downloadgnumach-be0abe4c2361f2c7db5a52b0900e298083fefe40.tar.gz
gnumach-be0abe4c2361f2c7db5a52b0900e298083fefe40.tar.bz2
gnumach-be0abe4c2361f2c7db5a52b0900e298083fefe40.zip
x86_64: Change active_threads to use gs like i386
Message-Id: <20230925002353.466997-1-damien@zamaudio.com>
Diffstat (limited to 'x86_64/cswitch.S')
-rw-r--r--x86_64/cswitch.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/x86_64/cswitch.S b/x86_64/cswitch.S
index 1f2e8e9d..29dae62c 100644
--- a/x86_64/cswitch.S
+++ b/x86_64/cswitch.S
@@ -85,7 +85,7 @@ ENTRY(Switch_context)
/* point to stack top */
CPU_NUMBER(%eax)
- movq %rsi,CX(EXT(active_threads),%rax) /* new thread is active */
+ movq %rsi,MY(ACTIVE_THREAD) /* new thread is active */
movq %rcx,CX(EXT(active_stacks),%rax) /* set current stack */
movq %rbx,CX(EXT(kernel_stack),%rax) /* set stack top */