Skip to content

Commit 783b632

Browse files
committed
Add no-op impl for enable_coprocessors on riscv
1 parent 6341f50 commit 783b632

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

rp235x-hal/src/arch.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,17 @@ mod inner {
123123
riscv::register::mstatus::read().mie()
124124
}
125125

126+
/// Enable co-processors.
127+
///
128+
/// The riscv core in rp2350 does not have any co-processors.
129+
/// As such, this function does nothing, and only exists to
130+
/// provide compatibility between arm and riscv targets.
131+
///
132+
/// # Safety
133+
///
134+
/// No safety requirements for riscv targets, as this function does nothing.
135+
pub unsafe fn enable_coprocessors() {}
136+
126137
#[no_mangle]
127138
#[allow(non_snake_case)]
128139
fn MachineExternal() {

0 commit comments

Comments
 (0)