riscv: add bare-bones interrupt support

This commit adds support for timer interrupts, replacing the busy loop
that was used before. It is perhaps the most simple interrupt to
implement and should serve as the basis for further interrupt support in
RISC-V.
This commit is contained in:
Ayke van Laethem
2020-01-09 16:38:17 +01:00
committed by Ron Evans
parent 360923abbf
commit b9cdfd9e9a
3 changed files with 102 additions and 3 deletions
+3
View File
@@ -2,7 +2,10 @@ SECTIONS
{
.text :
{
. = ALIGN(4);
KEEP(*(.init))
. = ALIGN(4);
*(.text.handleInterruptASM)
*(.text)
*(.text.*)
*(.rodata)