diff options
Diffstat (limited to 'arch/x86_64/lock.c')
| -rw-r--r-- | arch/x86_64/lock.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/x86_64/lock.c b/arch/x86_64/lock.c index b010ee6..a34cee6 100644 --- a/arch/x86_64/lock.c +++ b/arch/x86_64/lock.c @@ -11,6 +11,13 @@ take_mutex(atomic_flag *lock) } } +int +try_take_mutex(atomic_flag *lock) +{ + if(_kernel_panic_unlock) return 1; + return atomic_flag_test_and_set(lock); +} + void release_mutex(atomic_flag *lock) { |
