diff options
author | vetch <vetch97@gmail.com> | 2020-01-03 10:57:33 +0100 |
---|---|---|
committer | vetch <vetch97@gmail.com> | 2020-01-03 10:57:33 +0100 |
commit | 2d31012739a11724844701d07db12e6e1307925e (patch) | |
tree | 9f7ebde7594b2f58a2538a157967e1341385e7fc | |
parent | ab7b754bb32022336527c1a2d5d710b95a589d0e (diff) | |
download | rpi-MMU-example-2d31012739a11724844701d07db12e6e1307925e.tar.gz rpi-MMU-example-2d31012739a11724844701d07db12e6e1307925e.zip |
update
-rw-r--r-- | interrupt_vector.S | 6 | ||||
-rw-r--r-- | interrupts.c | 10 |
2 files changed, 8 insertions, 8 deletions
diff --git a/interrupt_vector.S b/interrupt_vector.S index 1f5bb3a..04561e6 100644 --- a/interrupt_vector.S +++ b/interrupt_vector.S @@ -3,6 +3,7 @@ .global abort_handler .local generic_handler .global _interrupt_vectors +/* _interrupt_vectors: ldr pc,reset_handler ldr pc,undefined_handler @@ -18,8 +19,8 @@ _interrupt_vectors: prefetch_handler: .word abort data_handler: .word abort unused_handler: .word abort - irq_handler_caller: .word irq fiq_handler: .word abort + */ //b abort_handler_caller //b abort_handler_caller //b abort_handler_caller @@ -84,8 +85,7 @@ fiq_handler_caller: ldr r5, =fiq_handler bx r5 - irq: mov sp, #0x8000 ldr r5, =abort_handler - subs pc,lr,#4
\ No newline at end of file + subs pc,lr,#4 diff --git a/interrupts.c b/interrupts.c index 2dd7fbd..ff26eba 100644 --- a/interrupts.c +++ b/interrupts.c @@ -63,9 +63,9 @@ void generic_handler(void) void irq_handler(void) { - uart_puts("nwm\r\n"); +// uart_puts("nwm\r\n"); - system_reentry_point(); +// system_reentry_point(); if (armclk_irq_pending()) { puts("<<irq from timer>>"); @@ -90,9 +90,9 @@ void fiq_handler(void) void __attribute__((interrupt("IRQ"))) __attribute__((section(".interrupt_vectors.text"))) -irq_handler(void) { +irq_handler2(void) { /* You code goes here */ - uart_puts("GOT INTERRUPT!\r\n"); +// uart_puts("GOT INTERRUPT!\r\n"); local_timer_clr_reload_reg_t temp = { .IntClear = 1, .Reload = 1 }; QA7->TimerClearReload = temp; // Clear interrupt & reload @@ -109,6 +109,6 @@ int enable_timer(void) { QA7->TimerClearReload.Reload = 1; // Reload now QA7->Core0TimerIntControl.nCNTPNSIRQ_IRQ = 1; // We are in NS EL1 so enable IRQ to core0 that level QA7->Core0TimerIntControl.nCNTPNSIRQ_FIQ = 0; // Make sure FIQ is zero - uart_puts("Enabled Timer\r\n"); +// uart_puts("Enabled Timer\r\n"); return(0); }
\ No newline at end of file |