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

Function spinlock_enter

freebsd/mips/mips/machdep.c:508–522  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

506}
507
508void
509spinlock_enter(void)
510{
511 struct thread *td;
512 register_t intr;
513
514 td = curthread;
515 if (td->td_md.md_spinlock_count == 0) {
516 intr = intr_disable();
517 td->td_md.md_spinlock_count = 1;
518 td->td_md.md_saved_intr = intr;
519 critical_enter();
520 } else
521 td->td_md.md_spinlock_count++;
522}
523
524void
525spinlock_exit(void)

Callers

nothing calls this directly

Calls 2

intr_disableFunction · 0.50
critical_enterFunction · 0.50

Tested by

no test coverage detected