From a7ca32e3a3ec2d3c1947a06fbcde0f779b0b1fec Mon Sep 17 00:00:00 2001 From: Frans Kaashoek Date: Tue, 9 Oct 2018 20:22:48 -0400 Subject: Change mycpu() to use %gs. --- proc.h | 1 + 1 file changed, 1 insertion(+) (limited to 'proc.h') 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 -- cgit v1.2.3