diff options
author | Damien Zammit <damien@zamaudio.com> | 2024-02-16 14:51:17 +1100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2024-02-19 01:16:05 +0100 |
commit | 7ccf464afa11dfd849c61dd71c2ceadd2c1e8391 (patch) | |
tree | b21139af185649ba6a4dbb4605a37ac74abcaec4 /kern | |
parent | 032c9e179a3ea03bea17f78b9f024341266e6cc8 (diff) | |
download | gnumach-7ccf464afa11dfd849c61dd71c2ceadd2c1e8391.tar.gz gnumach-7ccf464afa11dfd849c61dd71c2ceadd2c1e8391.tar.bz2 gnumach-7ccf464afa11dfd849c61dd71c2ceadd2c1e8391.zip |
Fix compile with MACH_LOCK_MON
Diffstat (limited to 'kern')
-rw-r--r-- | kern/lock.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/kern/lock.h b/kern/lock.h index 885b60ba..9d081d39 100644 --- a/kern/lock.h +++ b/kern/lock.h @@ -64,6 +64,10 @@ #define simple_lock_nocheck _simple_lock #define simple_lock_try_nocheck _simple_lock_try #define simple_unlock_nocheck _simple_unlock +#else +#define simple_lock_nocheck simple_lock +#define simple_lock_try_nocheck simple_lock_try +#define simple_unlock_nocheck simple_unlock #endif #endif @@ -261,6 +265,8 @@ extern unsigned long in_interrupt[NCPUS]; #endif /* MACH_LDEBUG */ #define have_lock(l) (have_read_lock(l) || have_write_lock(l)) +/* These are defined elsewhere with lock monitoring */ +#if MACH_LOCK_MON == 0 #define simple_lock(l) do { \ lock_check_no_interrupts(); \ simple_lock_nocheck(l); \ @@ -273,6 +279,7 @@ extern unsigned long in_interrupt[NCPUS]; lock_check_no_interrupts(); \ simple_unlock_nocheck(l); \ } while (0) +#endif /* _irq variants */ |