Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
strategy:
fail-fast: false
matrix:
rust-toolchain: [nightly-2024-12-25, nightly]
rust-toolchain: [nightly-2025-05-20, nightly]
targets: [riscv64gc-unknown-none-elf]
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -36,7 +36,7 @@ jobs:
strategy:
fail-fast: false
matrix:
rust-toolchain: [nightly-2024-12-25]
rust-toolchain: [nightly-2025-05-20]
targets: [riscv64gc-unknown-none-elf]
permissions:
contents: write
Expand Down
4 changes: 1 addition & 3 deletions src/detect.rs
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,8 @@ struct TrapFrame {
// This function should not be used in conventional trap handling,
// as it does not preserve a special trap stack, and it's designed to
// handle exceptions only rather than interrupts.
#[naked]
#[unsafe(naked)]
unsafe extern "C" fn on_detect_trap() -> ! {
unsafe {
naked_asm!(
".p2align 2",
"addi sp, sp, -8*21",
Expand Down Expand Up @@ -213,5 +212,4 @@ unsafe extern "C" fn on_detect_trap() -> ! {
"sret",
rust_detect_trap = sym rust_detect_trap,
)
}
}
1 change: 0 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#![no_std]
#![feature(doc_cfg)]
#![feature(naked_functions)]
#![feature(riscv_ext_intrinsics)]
#![doc = include_str!("../README.md")]

Expand Down
2 changes: 0 additions & 2 deletions src/vcpu.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
use core::ops::{Shl, Shr};

use crate::sbi_console::*;
use axaddrspace::device::AccessWidth;
use riscv::register::hstatus;
Expand Down