Skip to content
Closed
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 core/src/cpus/riscv32.zig
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ pub const nop = riscv32_common.nop;
pub const wfi = riscv32_common.wfi;

pub fn wfe() void {
asm volatile ("csrs 0x810, 0x1");
asm volatile ("csrs 0x300, 0x1");
wfi();
asm volatile ("csrs 0x810, 0x1");
asm volatile ("csrs 0x300, 0x1");
}

pub const startup_logic = struct {
Expand Down
Loading