Skip to content

Conversation

@dmitrykos
Copy link
Owner

Adds sync::SpinLock implementation: a recursive, high-performance lock for multicore systems as an extension of low-level hw::SpinLock.

PR also:

  • Refactors low-level critical section API to hw::CriticalSection. Refactor low-level spin-lock API to hw::SpinLock.
  • Moves low-level hardware-dependent API into stk::hw namespace to clearly separate it from stk::sync implementation.
  • Adds additional tests checking ISR-unsafe kernel API.

@dmitrykos dmitrykos self-assigned this Jan 29, 2026
@dmitrykos dmitrykos added documentation Improvements or additions to documentation enhancement New feature or request labels Jan 29, 2026
@github-actions
Copy link

github-actions bot commented Jan 29, 2026

MemBrowse Memory Report

stm32f0-sleep

  • FLASH: .text +124 B (+0.7%, 18,280 B / 65,536 B, total: 28% used)

stm32f1-sleep

  • FLASH: .text +108 B (+0.6%, 17,577 B / 131,072 B, total: 13% used)

stm32f4-sleep

  • FLASH: .text +100 B (+0.5%, 18,453 B / 1,048,576 B, total: 2% used)

… for multicore systems as an extension of low-level hw::SpinLock.

Refactor low-level critical section API to hw::CriticalSection.
Refactor low-level spin-lock API to hw::SpinLock.
Move low-level hardware-dependent API into stk::hw namespace to clearly separate it from stk::sync implementation.
Add additional tests checking ISR-unsafe kernel API.
@dmitrykos dmitrykos force-pushed the sync_critical_section branch from 0ad366c to 154869a Compare January 29, 2026 12:06
@github-actions
Copy link

LCOV of commit 0f89d52 during Code Coverage - Generic #305

Summary coverage rate:
  lines......: 100.0% (940 of 940 lines)
  functions..: 55.2% (1190 of 2156 functions)
  branches...: no data found

Files changed coverage rate: n/a

Repository owner deleted a comment from github-actions bot Jan 29, 2026
Repository owner deleted a comment from github-actions bot Jan 29, 2026
@dmitrykos dmitrykos merged commit fcdd13f into main Jan 29, 2026
21 checks passed
@dmitrykos dmitrykos deleted the sync_critical_section branch January 29, 2026 15:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants