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 fadc056 commit beedc43Copy full SHA for beedc43
arch/riscv/hal.c
@@ -274,6 +274,12 @@ static void uart_init(uint32_t baud)
274
void hal_hardware_init(void)
275
{
276
uart_init(USART_BAUD);
277
+
278
+ /* Initialize PMP hardware with kernel memory regions */
279
+ pmp_config_t *pmp_config = pmp_get_config();
280
+ if (pmp_init_kernel(pmp_config) != 0)
281
+ hal_panic();
282
283
/* Set the first timer interrupt. Subsequent interrupts are set in ISR */
284
mtimecmp_w(mtime_r() + (F_CPU / F_TIMER));
285
/* Install low-level I/O handlers for the C standard library */
0 commit comments