Commit 2fe3c61
RISC-V: add configMTIME_INIT_IN_BSP
Add a new configMTIME_INIT_IN_BSP configuration macro to allow BSPs and
demo applications to initialise the MMIO MTIME pointers within the
CLINT. This enables BSPs to provide custom addresses or properly typed
pointer values, rather than relying on plain integer constants coming
from macros as is currently the case. This change does not affect
existing assumptions and usage, but allows architectures that
differentiate between integers and pointers to work.
Signed-off-by: Hesham Almatary <Hesham.Almatary@cl.cam.ac.uk>1 parent ab6ccbb commit 2fe3c61
1 file changed
+10
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
96 | 99 | | |
97 | 100 | | |
98 | 101 | | |
| |||
130 | 133 | | |
131 | 134 | | |
132 | 135 | | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
140 | 143 | | |
141 | 144 | | |
142 | 145 | | |
| |||
0 commit comments