plic: fix PLIC_MAX_IRQS
The maximum number of PLIC interrupts is defined in the PLIC spec[1] as 1024. [1] https://github.com/riscv/riscv-plic-spec/blob/master/riscv-plic.adoc MFC after: 1 week
This commit is contained in:
parent
2b2cde807c
commit
9a64005837
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=354603
@ -52,7 +52,7 @@ __FBSDID("$FreeBSD$");
|
||||
|
||||
#include "pic_if.h"
|
||||
|
||||
#define PLIC_MAX_IRQS 2048
|
||||
#define PLIC_MAX_IRQS 1024
|
||||
#define PLIC_PRIORITY(n) (0x000000 + (n) * 0x4)
|
||||
#define PLIC_ENABLE(n, h) (0x002000 + (h) * 0x80 + 4 * ((n) / 32))
|
||||
#define PLIC_THRESHOLD(h) (0x200000 + (h) * 0x1000 + 0x0)
|
||||
|
Loading…
Reference in New Issue
Block a user