diff options
author | Russ Cox <rsc@x40.(none)> | 2009-09-02 07:41:08 -0700 |
---|---|---|
committer | Russ Cox <rsc@x40.(none)> | 2009-09-02 07:41:08 -0700 |
commit | 57ae146362df2350737e5194ca81d925b9466124 (patch) | |
tree | 708f774100e6835cd69522dbf048ceb1693df661 | |
parent | 45a978263651815caf7d0741201175c8969c2cc3 (diff) | |
download | xv6-labs-57ae146362df2350737e5194ca81d925b9466124.tar.gz xv6-labs-57ae146362df2350737e5194ca81d925b9466124.tar.bz2 xv6-labs-57ae146362df2350737e5194ca81d925b9466124.zip |
Fix TLS for PIC systems
-rw-r--r-- | proc.c | 1 | ||||
-rw-r--r-- | proc.h | 1 |
2 files changed, 2 insertions, 0 deletions
@@ -75,6 +75,7 @@ ksegment(void) loadfsgs(SEG_KCPU << 3); // Initialize cpu-local variables. + c->tlsstruct = &c->tlsstruct; cpu = c; proc = 0; } @@ -59,6 +59,7 @@ struct cpu { int ncli; // Depth of pushcli nesting. int intena; // Were interrupts enabled before pushcli? void *tls[2]; + void *tlsstruct; }; extern struct cpu cpus[NCPU]; |