Skip to content

Commit 15151fb

Browse files
committed
Rename feature no-mie-mip to no-xie-xip
1 parent 6c4a2d8 commit 15151fb

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

riscv-rt/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,6 @@ v-trap = ["riscv-rt-macros/v-trap"]
4040
u-boot = ["riscv-rt-macros/u-boot", "single-hart"]
4141
no-interrupts = []
4242
no-exceptions = []
43-
no-mie-mip = []
43+
no-xie-xip = []
4444
device = []
4545
memory = []

riscv-rt/src/asm.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,10 @@ _abs_start:
6565
.cfi_startproc
6666
.cfi_undefined ra",
6767
// Disable interrupts
68-
#[cfg(feature = "s-mode")]
68+
#[cfg(all(feature = "s-mode", not(feature = "no-xie-xip")))]
6969
"csrw sie, 0
7070
csrw sip, 0",
71-
#[cfg(all(not(feature = "s-mode"), not(feature = "no-mie-mip")))]
71+
#[cfg(all(not(feature = "s-mode"), not(feature = "no-xie-xip")))]
7272
"csrw mie, 0
7373
csrw mip, 0",
7474
#[cfg(not(feature = "s-mode"))]

0 commit comments

Comments
 (0)