summaryrefslogtreecommitdiff
path: root/proc.c
diff options
context:
space:
mode:
Diffstat (limited to 'proc.c')
-rw-r--r--proc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/proc.c b/proc.c
index 6829b46..91a5801 100644
--- a/proc.c
+++ b/proc.c
@@ -75,6 +75,7 @@ ksegment(void)
loadfsgs(SEG_KCPU << 3);
// Initialize cpu-local variables.
+ c->tlsstruct = &c->tlsstruct;
cpu = c;
proc = 0;
}