HomeFreeBSD

Disable interrupts first and then set spinlock_count to 1.

Description

Disable interrupts first and then set spinlock_count to 1.
Otherwise interrupt can be generated just after setting spinlock_count
and before disabling interrupts.

Sponsored by: DARPA, AFRL

Details

Provenance
brAuthored on
Parents
rS347225: Provide a template for busdma code for RISC-V.
Branches
Unknown
Tags
Unknown