Skip to content

Commit d3f65b1

Browse files
committed
Add dummy enable_processors impl for on-host builds
1 parent 493ffb3 commit d3f65b1

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

rp235x-hal/src/arch.rs

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ mod inner {
4747

4848
/// Enable co-processors.
4949
///
50-
/// For core0, this is done by the `#[entry]` macro. Fore core1, this function is called
50+
/// For core0, this is done by the `#[entry]` macro. For core1, this function is called
5151
/// from `multicore::Core::spawn`.
5252
///
5353
/// # Safety
@@ -131,7 +131,8 @@ mod inner {
131131
///
132132
/// # Safety
133133
///
134-
/// No safety requirements for riscv targets, as this function does nothing.
134+
/// For thumbv8m.main-none-eabihf targets this must only be called
135+
/// immediately after starting up a core.
135136
pub unsafe fn enable_coprocessors() {}
136137

137138
#[no_mangle]
@@ -570,6 +571,14 @@ mod inner {
570571

571572
/// Placeholder function to mark an IRQ as pending
572573
pub fn interrupt_pend(_irq: rp235x_pac::Interrupt) {}
574+
575+
/// Placeholder function to enable co-processors.
576+
///
577+
/// # Safety
578+
///
579+
/// For thumbv8m.main-none-eabihf targets this must only be called
580+
/// immediately after starting up a core.
581+
pub unsafe fn enable_coprocessors() {}
573582
}
574583

575584
#[doc(inline)]

0 commit comments

Comments
 (0)