summaryrefslogtreecommitdiff
path: root/proc.h
diff options
context:
space:
mode:
authorFrans Kaashoek <[email protected]>2018-10-09 20:22:48 -0400
committerFrans Kaashoek <[email protected]>2018-10-09 20:22:48 -0400
commita7ca32e3a3ec2d3c1947a06fbcde0f779b0b1fec (patch)
tree9f984054071e2724e5f1a96e0dd73a50c7b29db1 /proc.h
parent821ee3fc99b6363d7799d4f5cfa629e36b554dbf (diff)
downloadxv6-labs-a7ca32e3a3ec2d3c1947a06fbcde0f779b0b1fec.tar.gz
xv6-labs-a7ca32e3a3ec2d3c1947a06fbcde0f779b0b1fec.tar.bz2
xv6-labs-a7ca32e3a3ec2d3c1947a06fbcde0f779b0b1fec.zip
Change mycpu() to use %gs.
Diffstat (limited to 'proc.h')
-rw-r--r--proc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/proc.h b/proc.h
index 9261766..0b01b75 100644
--- a/proc.h
+++ b/proc.h
@@ -3,6 +3,7 @@ struct cpu {
uint64 syscallno; // Temporary used by sysentry
uint64 usp; // Temporary used by sysentry
struct proc *proc; // The process running on this cpu or null
+ struct cpu *cpu; // XXX
uchar apicid; // Local APIC ID
struct context *scheduler; // swtch() here to enter scheduler
struct taskstate ts; // Used by x86 to find stack for interrupt