aboutsummaryrefslogtreecommitdiff
path: root/interrupts.c
diff options
context:
space:
mode:
authorvetch <vetch97@gmail.com>2019-11-12 17:45:36 +0100
committervetch <vetch97@gmail.com>2019-11-12 17:45:36 +0100
commitd302f79c13df6ecaa63c477c6a811fa94996b7cb (patch)
treea815fa6afb4ca1e1a1b3f587a66910f6109a4909 /interrupts.c
parentbff735a698a81067ad6a69ae520f3c93a5cec770 (diff)
downloadrpi-MMU-example-d302f79c13df6ecaa63c477c6a811fa94996b7cb.tar.gz
rpi-MMU-example-d302f79c13df6ecaa63c477c6a811fa94996b7cb.zip
add interrupts; add some more content in pipe (commented out for now)
Diffstat (limited to 'interrupts.c')
-rw-r--r--interrupts.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/interrupts.c b/interrupts.c
index e69de29..3dc3d6f 100644
--- a/interrupts.c
+++ b/interrupts.c
@@ -0,0 +1,15 @@
+#include "uart.h"
+/**
+ @brief The undefined instruction interrupt handler
+
+ If an undefined instruction is encountered, the CPU will start
+ executing this function. Just trap here as a debug solution.
+*/
+void __attribute__((interrupt("UNDEF"))) undefined_instruction_vector(void)
+{
+ uart_puts("Undefined instruction occured");
+ while( 1 )
+ {
+ /* Do Nothing! */
+ }
+} \ No newline at end of file