diff options
author | Andrew Waterman <andrew@sifive.com> | 2017-02-20 19:05:55 -0800 |
---|---|---|
committer | Andrew Waterman <andrew@sifive.com> | 2017-02-20 19:05:55 -0800 |
commit | 59484c94e161b0f1870096cfb183533b20569669 (patch) | |
tree | b2e3d43e1b14a37bf0ce7b86cc53eb27ca47be94 /machine/mtrap.h | |
parent | 66fda264c796e7bcfe63282ae46c398d4a25c4d9 (diff) | |
download | pk-59484c94e161b0f1870096cfb183533b20569669.zip pk-59484c94e161b0f1870096cfb183533b20569669.tar.gz pk-59484c94e161b0f1870096cfb183533b20569669.tar.bz2 |
WIP on SBI
Diffstat (limited to 'machine/mtrap.h')
-rw-r--r-- | machine/mtrap.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/machine/mtrap.h b/machine/mtrap.h index 6f38cf6..3700a6d 100644 --- a/machine/mtrap.h +++ b/machine/mtrap.h @@ -36,10 +36,10 @@ extern volatile uint32_t* plic_priorities; extern size_t plic_ndevs; typedef struct { - uint32_t* ipi; + volatile uint32_t* ipi; volatile int mipi_pending; - uint64_t* timecmp; + volatile uint64_t* timecmp; volatile uint32_t* plic_m_thresh; volatile uintptr_t* plic_m_ie; @@ -75,9 +75,9 @@ static inline void wfi() #endif // !__ASSEMBLER__ -#define IPI_SOFT 0x1 -#define IPI_FENCE_I 0x2 -#define IPI_SFENCE_VM 0x4 +#define IPI_SOFT 0x1 +#define IPI_FENCE_I 0x2 +#define IPI_SFENCE_VMA 0x4 #define MACHINE_STACK_SIZE RISCV_PGSIZE #define MENTRY_HLS_OFFSET (INTEGER_CONTEXT_SIZE + SOFT_FLOAT_CONTEXT_SIZE) |