From f8ab2079cda8fc89f576b3b78a23a9c62891d74d Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Wed, 2 Sep 2009 07:59:24 -0700 Subject: fix TLS again; still not quite but a lot better. --- proc.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'proc.h') 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; }; -- cgit v1.2.3