AArch64 EL2 hypervisor for QEMU virt that boots at EL2
1#ifndef HV_PANIC_H
2#define HV_PANIC_H
3
4#include "hv/types.h"
5
6void panic(const char *reason) __attribute__((noreturn));
7void panic_with_code(const char *reason, uint64_t code) __attribute__((noreturn));
8void panic_dump_value(const char *name, uint64_t value);
9
10#define BUG_ON(cond) do { if (cond) { panic("BUG_ON: " #cond); } } while (0)
11
12#endif