Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: janky way of having tracing in ISRs #132

Merged
merged 2 commits into from
Jul 6, 2023
Merged

feat: janky way of having tracing in ISRs #132

merged 2 commits into from
Jul 6, 2023

Conversation

hawkw
Copy link
Contributor

@hawkw hawkw commented Jul 6, 2023

This is not that good but it allows at least one ISR to trace even if
the interrupt fired while normal code was holding the trace WGR. We can
probably figure out a nicer version of this, with different tracebufs
for each ISR priority level, later.

Cherry-picked out of #103

; Conflicts:
;	platforms/allwinner-d1/core/src/drivers/twi.rs
@hawkw hawkw requested a review from jamesmunns July 6, 2023 22:53
@netlify
Copy link

netlify bot commented Jul 6, 2023

Deploy Preview for merry-scone-cc7a60 ready!

Name Link
🔨 Latest commit c957d10
🔍 Latest deploy log https://app.netlify.com/sites/merry-scone-cc7a60/deploys/64a747de43dc950008067c66
😎 Deploy Preview https://deploy-preview-132--merry-scone-cc7a60.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@@ -234,8 +234,10 @@ impl D1 {
/// At the moment, we only service the Channel 0 interrupt,
/// which indicates that the serial transmission is complete.
fn handle_dmac() {
let _isr = kernel::isr::Isr::enter();
Copy link
Contributor

Choose a reason for hiding this comment

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

We could potentially do this at the top of the actual ISR entry point instead of in every handler

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done!

Copy link
Contributor

@jamesmunns jamesmunns left a comment

Choose a reason for hiding this comment

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

shipit.swf

@jamesmunns jamesmunns merged commit f86b23c into main Jul 6, 2023
10 checks passed
@jamesmunns jamesmunns deleted the eliza/in-isr branch July 6, 2023 23:57
@hawkw hawkw modified the milestone: beepberry computer v0.1 Jul 10, 2023
@jamesmunns jamesmunns added platform: D1 Specific to the Allwinner D1 hardware platform area: protocols Related to communication protocols, including SerMux and Traceproto. area: drivers Related to driver implementation for hardware devices. labels Jul 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: drivers Related to driver implementation for hardware devices. area: protocols Related to communication protocols, including SerMux and Traceproto. platform: D1 Specific to the Allwinner D1 hardware platform
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants