1
0
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:
benpicco 2021-05-05 16:00:36 +02:00 committed by GitHub
commit 6e4434a760
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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(). */