diff options
author | Frans Kaashoek <[email protected]> | 2019-07-02 13:40:33 -0400 |
---|---|---|
committer | Frans Kaashoek <[email protected]> | 2019-07-02 13:40:33 -0400 |
commit | da51735980e500922bc108a3444b64ac9450032e (patch) | |
tree | 76ad738ff42f56a36ea2300b2d90946e64d5040e /kernel/spinlock.h | |
parent | 67702cf706bce7adef472f0caa48d81ddfaeb33a (diff) | |
download | xv6-labs-da51735980e500922bc108a3444b64ac9450032e.tar.gz xv6-labs-da51735980e500922bc108a3444b64ac9450032e.tar.bz2 xv6-labs-da51735980e500922bc108a3444b64ac9450032e.zip |
Avoid two cores selecting the same process to run
Diffstat (limited to 'kernel/spinlock.h')
-rw-r--r-- | kernel/spinlock.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/spinlock.h b/kernel/spinlock.h index 4392820..5f244c9 100644 --- a/kernel/spinlock.h +++ b/kernel/spinlock.h @@ -5,5 +5,7 @@ struct spinlock { // For debugging: char *name; // Name of lock. struct cpu *cpu; // The cpu holding the lock. + struct cpu *last_release; + uint64 last_pc; }; |