Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Add initial RISC-V support + HiFive board #1317
Pull Request Overview
Support for RISC-V has been progressing on the side for a while, and I've been realizing that trying to make a pull request that includes three different boards and support for a new architecture is not only going to be very difficult to review, but also very difficult to create. So instead, this is an attempt to start the process with some initial code that supports the HiFive1 rev A board.
This code is very similar to the
Since the HiFive1a does not support User mode I removed all of the code related to supporting applications in main.rs.
One nice thing about this PR is that only one file actually changed, most of this patch is just adding code. The changed file is the kernel linker script which requires a few additions.
This pull request was tested by running the kernel on a HiFive1 board and verifying that it still prints the
TODO or Help Wanted
A big question is how to integrate the improvements from others related to the HiFive1/E310 code. My preference would be to merge this PR and then use it as base for other improvements, but if other code is ready to go it might make sense to extend this PR or create a series of active PRs.
I updated several READMEs, but I'm still not sure that I didn't miss anything.