arm,irq: use UNREACHBLE in unimplemented functions

UNREACHABLE instead of halt means the compiler can elide the function
from the binary.

Signed-off-by: Gerwin Klein <gerwin.klein@proofcraft.systems>
This commit is contained in:
Gerwin Klein
2025-10-03 08:54:00 +10:00
parent 6c7a376200
commit ec918cf123
3 changed files with 3 additions and 3 deletions

View File

@@ -128,7 +128,7 @@ void setIRQTrigger(irq_t irq, bool_t trigger)
static inline void plat_sendSGI(word_t irq, word_t target)
{
/* Unreachable; not supported on this platform. */
halt();
UNREACHABLE();
}
static inline bool_t plat_SGITargetValid(word_t target)

View File

@@ -153,7 +153,7 @@ void setIRQTrigger(irq_t irq, bool_t trigger)
static inline void plat_sendSGI(word_t irq, word_t target)
{
/* Unreachable; not supported on this platform. */
halt();
UNREACHABLE();
}
static inline bool_t plat_SGITargetValid(word_t target)

View File

@@ -114,7 +114,7 @@ void setIRQTrigger(irq_t irq, bool_t trigger)
static inline void plat_sendSGI(word_t irq, word_t target)
{
/* Unreachable; not supported on this platform. */
halt();
UNREACHABLE();
}
static inline bool_t plat_SGITargetValid(word_t target)