2021-08-15 05:52:35 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2021 Henrik Brix Andersen <henrik@brixandersen.dk>
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
2022-05-06 17:11:04 +08:00
|
|
|
#include <zephyr/irq.h>
|
2021-08-15 05:52:35 +08:00
|
|
|
#include <soc.h>
|
|
|
|
|
|
|
|
#if defined(CONFIG_RISCV_SOC_INTERRUPT_INIT)
|
|
|
|
void soc_interrupt_init(void)
|
|
|
|
{
|
2021-12-30 02:22:48 +08:00
|
|
|
(void)arch_irq_lock();
|
2021-08-15 05:52:35 +08:00
|
|
|
|
2023-03-17 01:28:45 +08:00
|
|
|
csr_write(mie, 0);
|
2021-08-15 05:52:35 +08:00
|
|
|
}
|
|
|
|
#endif
|