diff options
author | Ronald G. Minnich <rminnich@gmail.com> | 2016-12-12 15:09:42 -0800 |
---|---|---|
committer | Ronald G. Minnich <rminnich@gmail.com> | 2016-12-18 07:09:19 +0100 |
commit | d9307c2e8aa3272fe57a67d2a5f31e38fa69d328 (patch) | |
tree | 752a62e96e4bafd4b23de2ecdb29ce2a1cd066e2 /src/arch/x86 | |
parent | a01695bf9ac5ad401950af96682b494127ad8a8d (diff) | |
download | coreboot-d9307c2e8aa3272fe57a67d2a5f31e38fa69d328.tar.xz |
riscv: Add support for timer interrupts
RISCV requires that timer interrupts be handled in machine
mode and delegated as necessary. Also you can only reset the
timer interrupt by writing to mtimecmp. Further, you must
write a number > mtime, not just != mtime. This rather clumsy
situation requires that we write some value into the future
into mtimecmp lest we never be able to leave machine mode as
the interrupt either is not cleared or instantly reoccurs.
This current code is tested and works for harvey (Plan 9)
timer interrupts.
Change-Id: I8538d5fd8d80d9347773c638f5cbf0da18dc1cae
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
Reviewed-on: https://review.coreboot.org/17807
Tested-by: build bot (Jenkins)
Reviewed-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net>
Diffstat (limited to 'src/arch/x86')
0 files changed, 0 insertions, 0 deletions