summaryrefslogtreecommitdiff
path: root/proc.h
diff options
context:
space:
mode:
authorrsc <rsc>2007-10-01 20:43:15 +0000
committerrsc <rsc>2007-10-01 20:43:15 +0000
commit943fd378a1324ca60da72b271769fea4a86e36cb (patch)
treea2510dc65a996e7d7fc49ab1e594ccb5a45f20ba /proc.h
parent9fd9f80431ad85552c0969831a3ccc3e800ac464 (diff)
downloadxv6-labs-943fd378a1324ca60da72b271769fea4a86e36cb.tar.gz
xv6-labs-943fd378a1324ca60da72b271769fea4a86e36cb.tar.bz2
xv6-labs-943fd378a1324ca60da72b271769fea4a86e36cb.zip
Incorporate new understanding of/with Intel SMP spec.
Dropped cmpxchg in favor of xchg, to match lecture notes. Use xchg to release lock, for future protection and to keep gcc from acting clever.
Diffstat (limited to 'proc.h')
-rw-r--r--proc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/proc.h b/proc.h
index fa60452..502361d 100644
--- a/proc.h
+++ b/proc.h
@@ -56,7 +56,7 @@ struct cpu {
struct context context; // Switch here to enter scheduler
struct taskstate ts; // Used by x86 to find stack for interrupt
struct segdesc gdt[NSEGS]; // x86 global descriptor table
- volatile int booted; // Has the CPU started?
+ volatile uint booted; // Has the CPU started?
int ncli; // Depth of pushcli nesting.
int intena; // Were interrupts enabled before pushcli?
};