diff options
Diffstat (limited to 'kernel/spinlock.h')
-rw-r--r-- | kernel/spinlock.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/kernel/spinlock.h b/kernel/spinlock.h index 4392820..9bac216 100644 --- a/kernel/spinlock.h +++ b/kernel/spinlock.h @@ -5,5 +5,9 @@ struct spinlock { // For debugging: char *name; // Name of lock. struct cpu *cpu; // The cpu holding the lock. +#ifdef LAB_LOCK + int nts; + int n; +#endif }; |