From da51735980e500922bc108a3444b64ac9450032e Mon Sep 17 00:00:00 2001 From: Frans Kaashoek Date: Tue, 2 Jul 2019 13:40:33 -0400 Subject: Avoid two cores selecting the same process to run --- kernel/spinlock.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'kernel/spinlock.h') 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; }; -- cgit v1.2.3