forked from Imagelibrary/seL4
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user