Repository navigation
Conversation
Limits the teardown watchdog to host ports, preserves the cleanup walk guard, and restores polling of state shared with threads and interrupts. Resets the delayed-suspension calibration counter before each sample.
Preserve the single-core sources from 227586c as the reference for the following SMP changes.
Adapt the corresponding single-core context code to per-hart state and atomic context publication. Keep board startup, timer setup, and IPI routing in BSP hooks. Check the C layout at build time and use the upstream RV64 timer pointer extension with a 32-bit ULONG. Verified both Debug SMP suites and both hard-float context tests on HERE VP. Assisted-by: Codex (GPT-6) <[email protected]>
Keep the GNU single-core LONG and ULONG type aliases for RV32 SMP. The RV64 port keeps int-width aliases and native-width pointers. Assisted-by: Codex (GPT-6) <[email protected]>
This branch has not been deployed
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.
This contribution provides basic SMP functionality for RISC-V.
I ran it on a virtual platform with RV32GC and RV64GC processors and an ACLINT providing timer and Inter-process interrupts.
It passes all tests with Debug and Release build options.
This port was originally based on a manual (as in human) implementation of the non-SMP kernel that used defines to provide differentiation between RV32 and RV64 using defines.
Since this was decided against in the current upstream implementation I employed AI to do the rewrite of defines to the corresponding instructions.