mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
Merge pull request #16449 from nmeum/pr/riscv-lto
riscv_common: mark handle_trap as used (fixes LTO on RISC-V)
This commit is contained in:
commit
6e4434a760
@ -70,7 +70,7 @@ void riscv_irq_init(void)
|
||||
/**
|
||||
* @brief Global trap and interrupt handler
|
||||
*/
|
||||
void handle_trap(uint32_t mcause)
|
||||
static void __attribute((used)) handle_trap(uint32_t mcause)
|
||||
{
|
||||
/* Tell RIOT to set sched_context_switch_request instead of
|
||||
* calling thread_yield(). */
|
||||
|
Loading…
Reference in New Issue
Block a user