Skip to content

Commit

Permalink
nova: remove nova_die from spin_lock
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-ab committed Feb 5, 2025
1 parent 412a707 commit 7cac7b8
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions repos/base-nova/src/include/base/internal/spin_lock.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,6 @@ static inline void spinlock_lock(volatile T *lock_variable)

unsigned help_counter = 0;

/* sanity check that ec_sel fits into the lock_variable */
if (tid >= (1 << (sizeof(*lock_variable) * 8 - RESERVED_BITS)))
nova_die();

if (myself) {
Nova::Utcb * utcb = reinterpret_cast<Nova::Utcb *>(myself->utcb());
help_counter = utcb->tls & COUNTER_MASK;
Expand Down

0 comments on commit 7cac7b8

Please sign in to comment.