aboutsummaryrefslogtreecommitdiff
path: root/interrupts.c
diff options
context:
space:
mode:
authorWojtek Kosior <kwojtus@protonmail.com>2020-01-03 16:41:41 +0100
committerWojtek Kosior <kwojtus@protonmail.com>2020-01-03 16:41:41 +0100
commit06991bb6572c1eb814ee35256b3c2bd06519acd2 (patch)
tree7d9d128a60d44ee5d0a3c74d84ac05132d326cea /interrupts.c
parentffb2c4adfb8e65e355b39abd39d994eebc649c98 (diff)
downloadrpi-MMU-example-06991bb6572c1eb814ee35256b3c2bd06519acd2.tar.gz
rpi-MMU-example-06991bb6572c1eb814ee35256b3c2bd06519acd2.zip
fix interrupt enabling/disabling/polling and uart fifo setting to make the io work properly
Diffstat (limited to 'interrupts.c')
-rw-r--r--interrupts.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/interrupts.c b/interrupts.c
index 9beee0a..bf7ed02 100644
--- a/interrupts.c
+++ b/interrupts.c
@@ -18,7 +18,7 @@ void undefined_instruction_vector(void)
{
error("Undefined instruction occured");
}
-_Bool flag = 0;
+
uint32_t supervisor_call_handler(uint32_t regs[14])
{
switch(regs[0]) {
@@ -38,15 +38,6 @@ uint32_t supervisor_call_handler(uint32_t regs[14])
case UART_WRITE:
error("UART_WRITE not implemented!!!!!");
break;
- case 17:
- {
- flag = 1;
- /* while (1) */
- /* { */
- /* printbin(*(uint32_t volatile*) PL011_UART_MIS); puts(""); */
- /* } */
- break;
- }
default:
// perhaps we should kill the process now?
error("unknown supervisor call type!!!!!");