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:
parent
6c7a376200
commit
ec918cf123
3 changed files with 3 additions and 3 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue