Skip to content
Merged
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
2 changes: 2 additions & 0 deletions examples/mps3-an536/src/bin/gic-unified-irq.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,9 @@ fn dump_cpsr() {
println!("CPSR: {:?}", cpsr);
}

// The `link_section` is just to check the macro can cope with it
#[irq]
#[unsafe(link_section = ".text.some_other_section")]
fn irq_handler() {
println!("> IRQ");
while let Some(int_id) = GicCpuInterface::get_and_acknowledge_interrupt(InterruptGroup::Group1)
Expand Down
1 change: 0 additions & 1 deletion examples/mps3-an536/src/bin/prefetch-exception-a32.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ core::arch::global_asm!(

// Custom link sections are allowed as well.
#[exception(Undefined)]
#[unsafe(link_section = ".text._rust_undefined_handler")]
fn undefined_handler(_addr: usize) -> ! {
panic!("unexpected undefined exception");
}
Expand Down
3 changes: 3 additions & 0 deletions examples/versatileab/src/bin/interrupt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,10 @@ fn catchall_handler() {
}

/// Our IRQ handler asks the PL190 what to do, and does it.
///
/// The `link_section` is just to check the macro can cope with it
#[exception(Irq)]
#[unsafe(link_section = ".text.some_other_section")]
unsafe fn interrupt_handler() {
println!("> interrupt_handler()");
PL190.irq_process();
Expand Down