Skip to content

cpu/fe310: interrupt handling cleanup#12276

Merged
benpicco merged 1 commit intoRIOT-OS:masterfrom
kenrabold:pr-fe310_intr_cleanup
Sep 28, 2019
Merged

cpu/fe310: interrupt handling cleanup#12276
benpicco merged 1 commit intoRIOT-OS:masterfrom
kenrabold:pr-fe310_intr_cleanup

Conversation

@kenrabold
Copy link
Contributor

Cleanup of FE310 interrupt handler code
Optimization of intr context frame
Reduce size of intr stack
Added unhandled trap output
Fix PR #12237

Contribution description

Took a deeper look into the FE310 interrupt and trap handling code and decided to clean it up.
Simplified the interrupt handling assembly routine and added more debug output about faulting instructions and addresses.
Also addressed the duplicate LD files as mentioned in PR #12237

Testing procedure

Tested with all tests\thread_* and tests\bench_* apps
Tested with both HiFive1 and HiFive1B boards

Issues/PRs references

Fixes: PR #12237

References: #12110, #12196, #12109

@kenrabold kenrabold force-pushed the pr-fe310_intr_cleanup branch from fa09553 to e844af5 Compare September 19, 2019 19:59
@benpicco benpicco requested a review from kaspar030 September 23, 2019 17:12
@benpicco benpicco added CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Platform: RISC-V Platform: This PR/issue effects RISC-V-based platforms Type: cleanup The issue proposes a clean-up / The PR cleans-up parts of the codebase / documentation labels Sep 27, 2019
Copy link
Contributor

@benpicco benpicco left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This all looks pretty reasonable as far as I can tell.
Please squash.

@miri64
Copy link
Member

miri64 commented Sep 27, 2019

@benpicco did you test?

@miri64 miri64 added CI: needs squashing Commits in this PR need to be squashed; If set, CI systems will mark this PR as unmergable CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR and removed CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR CI: needs squashing Commits in this PR need to be squashed; If set, CI systems will mark this PR as unmergable labels Sep 27, 2019
Cleanup of FE310 interrupt handler code
Optimization of intr context frame
Reduce size of intr stack
Added unhandled trap output
Fix PR RIOT-OS#12237
@kenrabold kenrabold force-pushed the pr-fe310_intr_cleanup branch from 4b17661 to 1d6e37a Compare September 27, 2019 20:34
@kenrabold
Copy link
Contributor Author

I tested these changes on both HiFive1 and HiFive1B boards with all tests\thread_* and tests\bench_* apps
Squashed the last commit

@miri64 miri64 added the Area: cpu Area: CPU/MCU ports label Sep 27, 2019
@benpicco benpicco merged commit 1543a8c into RIOT-OS:master Sep 28, 2019
@kb2ma kb2ma added this to the Release 2019.10 milestone Sep 29, 2019
@kenrabold kenrabold deleted the pr-fe310_intr_cleanup branch September 30, 2019 20:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: cpu Area: CPU/MCU ports CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Platform: RISC-V Platform: This PR/issue effects RISC-V-based platforms Type: cleanup The issue proposes a clean-up / The PR cleans-up parts of the codebase / documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants