git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Kernel - Disable nested locks in x86, added workqueue to build
[tpg/acess2.git]
/
Kernel
/
arch
/
x86
/
include
/
arch.h
diff --git
a/Kernel/arch/x86/include/arch.h
b/Kernel/arch/x86/include/arch.h
index
95a734f
..
9307ada
100644
(file)
--- a/
Kernel/arch/x86/include/arch.h
+++ b/
Kernel/arch/x86/include/arch.h
@@
-14,7
+14,6
@@
#define INVLPTR ((void*)-1)
// Allow nested spinlocks?
#define INVLPTR ((void*)-1)
// Allow nested spinlocks?
-#define STACKED_LOCKS 2 // 0: No, 1: Per-CPU, 2: Per-Thread
#define LOCK_DISABLE_INTS 1
// - Processor/Machine Specific Features
#define LOCK_DISABLE_INTS 1
// - Processor/Machine Specific Features
@@
-41,18
+40,11
@@
* \brief Short Spinlock structure
*/
struct sShortSpinlock {
* \brief Short Spinlock structure
*/
struct sShortSpinlock {
- #if STACKED_LOCKS == 2
- volatile void *Lock; //!< Lock value
- #else
volatile int Lock; //!< Lock value
volatile int Lock; //!< Lock value
- #endif
#if LOCK_DISABLE_INTS
int IF; //!< Interrupt state on call to SHORTLOCK
#endif
#if LOCK_DISABLE_INTS
int IF; //!< Interrupt state on call to SHORTLOCK
#endif
- #if STACKED_LOCKS
- int Depth;
- #endif
};
// === MACROS ===
};
// === MACROS ===
UCC
git Repository :: git.ucc.asn.au