aboutsummaryrefslogtreecommitdiff
path: root/include/bios.h
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2015-05-21 00:39:02 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2015-05-21 11:44:57 +0200
commit2e7cb17c15c64bfe6394b2a1951fa187c2620c7d (patch)
tree3f42e5910f51339fcc522782529674aa9d9d1543 /include/bios.h
parent7cadd5a6fbdbf078c2e6a4d59dcb5e5e2371406e (diff)
downloadqboot-2e7cb17c15c64bfe6394b2a1951fa187c2620c7d.zip
qboot-2e7cb17c15c64bfe6394b2a1951fa187c2620c7d.tar.gz
qboot-2e7cb17c15c64bfe6394b2a1951fa187c2620c7d.tar.bz2
initial fw_cfg support
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include/bios.h')
-rw-r--r--include/bios.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/bios.h b/include/bios.h
index 7232bef..bd7f77b 100644
--- a/include/bios.h
+++ b/include/bios.h
@@ -38,6 +38,8 @@ extern void bios_int15(void);
extern struct e820map e820;
+#define ARRAY_SIZE(x) (sizeof(x) / sizeof(x[0]))
+
static inline void __attribute__((noreturn)) panic(void)
{
asm volatile("cli; hlt");