summaryrefslogtreecommitdiff
path: root/proc.h
diff options
context:
space:
mode:
authorRuss Cox <rsc@x40.(none)>2009-09-02 07:59:24 -0700
committerRuss Cox <rsc@x40.(none)>2009-09-02 07:59:24 -0700
commitf8ab2079cda8fc89f576b3b78a23a9c62891d74d (patch)
tree552afd44e63a0780b998a8bac17c923de8cd8308 /proc.h
parent57ae146362df2350737e5194ca81d925b9466124 (diff)
downloadxv6-labs-f8ab2079cda8fc89f576b3b78a23a9c62891d74d.tar.gz
xv6-labs-f8ab2079cda8fc89f576b3b78a23a9c62891d74d.tar.bz2
xv6-labs-f8ab2079cda8fc89f576b3b78a23a9c62891d74d.zip
fix TLS again;
still not quite but a lot better.
Diffstat (limited to 'proc.h')
-rw-r--r--proc.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/proc.h b/proc.h
index 10760f8..f20f67e 100644
--- a/proc.h
+++ b/proc.h
@@ -58,7 +58,10 @@ struct cpu {
volatile uint booted; // Has the CPU started?
int ncli; // Depth of pushcli nesting.
int intena; // Were interrupts enabled before pushcli?
- void *tls[2];
+
+ // "Thread"-local storage variables
+ struct cpu *cpu;
+ struct proc *proc;
void *tlsstruct;
};