summaryrefslogtreecommitdiff
path: root/payloads/libpayload/include/exception.h
diff options
context:
space:
mode:
Diffstat (limited to 'payloads/libpayload/include/exception.h')
-rw-r--r--payloads/libpayload/include/exception.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/payloads/libpayload/include/exception.h b/payloads/libpayload/include/exception.h
index 1d9b832c07..67923ea9af 100644
--- a/payloads/libpayload/include/exception.h
+++ b/payloads/libpayload/include/exception.h
@@ -32,9 +32,10 @@
#include <arch/exception.h>
-typedef void (*exception_hook)(int type, struct exception_state *state);
+/* Return 1 if the exception was handled, 0 to proceed to the next handler. */
+typedef int (*exception_hook)(u32 type);
void exception_init(void);
-void exception_install_hook(int type, exception_hook hook);
+void exception_install_hook(exception_hook h);
#endif