From 57ae146362df2350737e5194ca81d925b9466124 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Wed, 2 Sep 2009 07:41:08 -0700 Subject: Fix TLS for PIC systems --- proc.c | 1 + 1 file changed, 1 insertion(+) (limited to 'proc.c') 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; } -- cgit v1.2.3