Skip to content
Snippets Groups Projects
Commit 57ae1463 authored by Russ Cox's avatar Russ Cox
Browse files

Fix TLS for PIC systems

parent 45a97826
No related branches found
No related tags found
No related merge requests found
......@@ -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];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment