A hardware spinlock serializes processors that share registers or memory,
where an interrupt lock only serializes the code of one. A consumer takes its
lock from a devicetree hwlocks entry and holds it, with interrupts locked,
around the accesses it shares. Without an entry, taking it only locks
interrupts. Locks work before their controller is initialized, as for the pins
of an early console.
Directory |
|
Header |
|
Kconfig |
|
API |
A holder keeps a lock for a few register accesses. A processor waiting for
longer than CONFIG_HWSPINLOCK_TIMEOUT_US gives up with -ETIMEDOUT: the
holder stopped with it.
Driver |
Compatible |
Kconfig |
|---|---|---|
STM32H7 hardware semaphores |
|
|
Driver |
Shares |
|---|---|
STM32 pin controller and GPIO |
Port registers, between the cores of an STM32H747 |
STM32 GPIO and RTC |
EXTI triggers and their routing in the SYSCFG, between the cores of an STM32H747 |
Generated from PebbleOS 013613c8a. This page is maintained in the pebbleos repository: docs/drivers/hwspinlock.md.