diff options
author | Robert Morris <[email protected]> | 2020-07-17 16:40:57 -0400 |
---|---|---|
committer | Frans Kaashoek <[email protected]> | 2020-08-10 11:19:10 -0400 |
commit | 1e72d5ca087985938589ce509ace4914039860d3 (patch) | |
tree | 59175bed3c14e765d5cb4210ac3d6f19d9a03593 /kernel/proc.h | |
parent | 5494c9170587b17c9d749e19753fa3e7fb6958b9 (diff) | |
download | xv6-labs-1e72d5ca087985938589ce509ace4914039860d3.tar.gz xv6-labs-1e72d5ca087985938589ce509ace4914039860d3.tar.bz2 xv6-labs-1e72d5ca087985938589ce509ace4914039860d3.zip |
cpu->scheduler -> cpu->context to reduce confusion
Diffstat (limited to 'kernel/proc.h')
-rw-r--r-- | kernel/proc.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/proc.h b/kernel/proc.h index 02e7bc3..c257eb7 100644 --- a/kernel/proc.h +++ b/kernel/proc.h @@ -21,7 +21,7 @@ struct context { // Per-CPU state. struct cpu { struct proc *proc; // The process running on this cpu, or null. - struct context scheduler; // swtch() here to enter scheduler(). + struct context context; // swtch() here to enter scheduler(). int noff; // Depth of push_off() nesting. int intena; // Were interrupts enabled before push_off()? }; |