We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc70011 commit 70be3d9Copy full SHA for 70be3d9
arch/riscv/hal.c
@@ -220,6 +220,12 @@ static void uart_init(uint32_t baud)
220
void hal_hardware_init(void)
221
{
222
uart_init(USART_BAUD);
223
+
224
+ /* Initialize PMP hardware with kernel memory regions */
225
+ pmp_config_t *pmp_config = pmp_get_config();
226
+ if (pmp_init_kernel(pmp_config) != 0)
227
+ hal_panic();
228
229
/* Set the first timer interrupt. Subsequent interrupts are set in ISR */
230
mtimecmp_w(mtime_r() + (F_CPU / F_TIMER));
231
/* Install low-level I/O handlers for the C standard library */
0 commit comments