diff options
Diffstat (limited to 'riscv/platform.h')
-rw-r--r-- | riscv/platform.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/riscv/platform.h b/riscv/platform.h index 6618d44..2bafa68 100644 --- a/riscv/platform.h +++ b/riscv/platform.h @@ -5,6 +5,15 @@ #define DEFAULT_RSTVEC 0x00001000 #define CLINT_BASE 0x02000000 #define CLINT_SIZE 0x000c0000 +#define PLIC_BASE 0x0c000000 +#define PLIC_SIZE 0x01000000 +#define PLIC_NDEV 31 +#define PLIC_PRIO_BITS 4 +#define NS16550_BASE 0x10000000 +#define NS16550_SIZE 0x100 +#define NS16550_REG_SHIFT 0 +#define NS16550_REG_IO_WIDTH 1 +#define NS16550_INTERRUPT_ID 1 #define EXT_IO_BASE 0x40000000 #define DRAM_BASE 0x80000000 |