summaryrefslogtreecommitdiff
path: root/payloads/libpayload/include/arm/arch
diff options
context:
space:
mode:
Diffstat (limited to 'payloads/libpayload/include/arm/arch')
-rw-r--r--payloads/libpayload/include/arm/arch/exception.h16
1 files changed, 15 insertions, 1 deletions
diff --git a/payloads/libpayload/include/arm/arch/exception.h b/payloads/libpayload/include/arm/arch/exception.h
index a0d9413f1c..13fda57aa7 100644
--- a/payloads/libpayload/include/arm/arch/exception.h
+++ b/payloads/libpayload/include/arm/arch/exception.h
@@ -30,9 +30,23 @@
#ifndef _ARCH_EXCEPTION_H
#define _ARCH_EXCEPTION_H
-#include <exception.h>
#include <stdint.h>
void set_vbar(uint32_t vbar);
+struct exception_state
+{
+ uint32_t regs[16];
+} __attribute__((packed));
+
+enum {
+ EXC_UNDEF = 1,
+ EXC_SWI = 2,
+ EXC_PABORT = 3,
+ EXC_DABORT = 4,
+ EXC_IRQ = 6,
+ EXC_FIQ = 7,
+ EXC_COUNT
+};
+
#endif