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.
The rationale for this change is summarized in https://issues.apache.org/jira/browse/MYNEWT-770
Regarding implementation, I decided on the following:
@apache-mynewt-core/kernel/sim
. This package contains the "signals" and "no-signals" implementations of the simulator.native-armv7
andnative-mips
This solution comes with a few annoyances:
kernel/os/src/arch/sim.../os_arch.c
files. These functions just call into functions defined in thekernel/sim
package.I still think this is the right approach. Conceptually, each of these platforms is indeed a different BSP. The wrapper functions are a bit annoying, but I think it is good to keep the sim implementation as a separate module rather than finding a way to force shared code into architecture-specific source directories. However, I am definitely open to comments or suggestions.