Add SMP support#205
Open
thejpster wants to merge 3 commits into
Open
Conversation
8cdf4be to
421f9a3
Compare
Also means we can collapse the mps3-an536-smp example back into mps3-an536, because we don't need special start-up routines any more (the presence of a custom `_default_start` before meant we weren't testing the supplied `_default_start` routine, so we had to split the example up).
You cannot check the stack contents of Core 1 on Core 0 when the MPU is enabled. So, now I set a flag and make sure not to do that for that particular test.
I copied from this example and got confused when it didn't work. Now it's fixed.
421f9a3 to
2896d2d
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Integrates SMP support into aarch32-rt. Now the default start-up routines (for Armv7-R, Armv7-A and Armv8-R) check MPIDR and do normal start-up on Core 0, and park any secondary core.
To get the secondary cores to work, you have to replace the park routine (
_asm_secondary_core_park) with one that waits for a reliable signal from Core 0 (like a hardware register, not definitely not a RAM location because RAM has random contents) and then returns. After that, stacks are initialised and the core ends up inkmain_secondary.This is a breaking change, but I think it makes SMP examples much easier to write. So much so, the
mps3-an536-smpexample folder has gone - they've been folded into the normalmps3-an536examples because they are now so similar.