Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PX4: Add support for CONFIG_SMP=y (NuttX only) #827

Merged
merged 7 commits into from
Dec 10, 2024
Merged

PX4: Add support for CONFIG_SMP=y (NuttX only) #827

merged 7 commits into from
Dec 10, 2024

Conversation

pussuw
Copy link

@pussuw pussuw commented Nov 28, 2024

Set of patches that add SMP support to PX4

@pussuw pussuw requested a review from jlaitine November 28, 2024 08:33
Implement the critical sections as spin locks. When CONFIG_SMP=n they
fall back to normal critical sections i.e. local interrupts are disabled.
Execute the reboot command (jump to __start) on all CPUs. The boot CPU i.e.
CPU0 will wait for the other CPUs to reboot first, otherwise when CPU0
does the .data/.bss section initialization it will pull the rug from
under the other CPUs feet by modifying global data unexpectedly.
Replace the critical sections with a dedicated hrt_ioctl spin lock
Use spinlock as the kernel side lock
@pussuw pussuw merged commit 81a38b0 into main Dec 10, 2024
27 checks passed
@pussuw pussuw deleted the px4_smp branch December 10, 2024 10:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants