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

Use const operands in asm macro #60

Merged
merged 5 commits into from
Oct 28, 2024
Merged

Use const operands in asm macro #60

merged 5 commits into from
Oct 28, 2024

Conversation

Alignof
Copy link
Owner

@Alignof Alignof commented Oct 28, 2024

  • Update rust toolchain version.
  • Replace the immediate values in the asm macro with constants.

Fix #58.

@Alignof Alignof self-assigned this Oct 28, 2024
@@ -9,6 +9,8 @@ use interrupt::trap_interrupt;
use core::arch::asm;
use riscv::register::mcause::{self, Trap};

const MACHINE_CONTEXT_SIZE: usize = 256;

Choose a reason for hiding this comment

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

⚠️ [clippy] clippy::missing_docs_in_private_items reported by reviewdog 🐶
missing documentation for a constant

@Alignof Alignof merged commit a75811c into develop Oct 28, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant