MCPcopy Create free account
hub / github.com/F-Stack/f-stack / spinlock_enter

Function spinlock_enter

freebsd/arm64/arm64/machdep.c:742–756  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

740}
741
742void
743spinlock_enter(void)
744{
745 struct thread *td;
746 register_t daif;
747
748 td = curthread;
749 if (td->td_md.md_spinlock_count == 0) {
750 daif = intr_disable();
751 td->td_md.md_spinlock_count = 1;
752 td->td_md.md_saved_daif = daif;
753 critical_enter();
754 } else
755 td->td_md.md_spinlock_count++;
756}
757
758void
759spinlock_exit(void)

Callers 1

cpu_idleFunction · 0.70

Calls 2

intr_disableFunction · 0.50
critical_enterFunction · 0.50

Tested by

no test coverage detected