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 71af753 commit 3269b17Copy full SHA for 3269b17
arch/riscv/hal.c
@@ -233,6 +233,12 @@ static void uart_init(uint32_t baud)
233
void hal_hardware_init(void)
234
{
235
uart_init(USART_BAUD);
236
+
237
+ /* Initialize PMP hardware with kernel memory regions */
238
+ pmp_config_t *pmp_config = pmp_get_config();
239
+ if (pmp_init_kernel(pmp_config) != 0)
240
+ hal_panic();
241
242
/* Set the first timer interrupt. Subsequent interrupts are set in ISR */
243
mtimecmp_w(mtime_r() + (F_CPU / F_TIMER));
244
/* Install low-level I/O handlers for the C standard library */
0 commit comments