Mercurial > hg > CbC > CbC_xv6
annotate src/spinlock.h @ 395:17e8a4bc06a7 default tip
add macOS AR/RANLIB
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 14 Dec 2020 21:59:50 +0900 |
parents | 3f243b59bcee |
children |
rev | line source |
---|---|
0 | 1 // Mutual exclusion lock. |
173 | 2 #ifndef SPINLOCK_H |
0 | 3 struct spinlock { |
4 uint locked; // Is the lock held? | |
5 | |
6 // For debugging: | |
7 char *name; // Name of lock. | |
8 struct cpu *cpu; // The cpu holding the lock. | |
9 uint pcs[10]; // The call stack (an array of program counters) | |
10 // that locked the lock. | |
11 }; | |
383
3f243b59bcee
move global variable in console.cbc to kernel_context
anatofuz
parents:
173
diff
changeset
|
12 #define SPINLOCK_H |
173 | 13 #endif // SPINLOCK_H |