diff options
author | Wojtek Kosior <kwojtus@protonmail.com> | 2019-11-20 08:29:33 +0100 |
---|---|---|
committer | Wojtek Kosior <kwojtus@protonmail.com> | 2019-11-20 08:29:33 +0100 |
commit | 6eba61fede40efda3651bceb559f8d1fa372fa73 (patch) | |
tree | b90f28b2c0c58e5a62cfde0008769292520ff600 /interrupts.c | |
parent | 42fa390951fa7a35cc60d935ae3140d735ec61e1 (diff) | |
parent | d302f79c13df6ecaa63c477c6a811fa94996b7cb (diff) | |
download | rpi-MMU-example-6eba61fede40efda3651bceb559f8d1fa372fa73.tar.gz rpi-MMU-example-6eba61fede40efda3651bceb559f8d1fa372fa73.zip |
merge alice to bob
Diffstat (limited to 'interrupts.c')
-rw-r--r-- | interrupts.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/interrupts.c b/interrupts.c new file mode 100644 index 0000000..3dc3d6f --- /dev/null +++ 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 |