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 May 7 2019, 2:32 PM
Parents
rG75cf8837a97d: Provide a template for busdma code for RISC-V.
Branches
Unknown
Tags
Unknown

Event Timeline