Skip to content

Split out SMP examples#127

Open
thejpster wants to merge 4 commits intorust-embedded:mainfrom
thejpster:more-smp-examples
Open

Split out SMP examples#127
thejpster wants to merge 4 commits intorust-embedded:mainfrom
thejpster:more-smp-examples

Conversation

@thejpster
Copy link
Contributor

@thejpster thejpster commented Feb 16, 2026

Moves the SMP example to its own example folder, and allocates stacks for all cores.

This makes it easier to share code across multiple SMP examples when adding more SMP examples in the future.

Will make it easier to add other tests, like sharing the GIC across
cores.
We send a Software Generated Interrupt from Core 0 to Core 1, and then
another one back the other way.
* The `_num_cores` symbol controls how many copies of each stack you get
* Added better docs to link.x
* Added `enum Stack` to aarch32-rt, which can fetch information about
  each stack
* Simplified the SMP start-up code
* Stacks and stack related code are now all in the same order

If you want to put stacks into TCM, you'll need custom routines. This
code assumes stacks all live in the same region of RAM.
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.

1 participant