Verified Commit bf88fd75 authored by Rahix's avatar Rahix
Browse files

fix(api): Make reset interrupt non-maskable


Signed-off-by: Rahix's avatarRahix <rahix@rahix.de>
parent 941fb5c4
......@@ -27,6 +27,9 @@ void api_interrupt_init(void)
for (int i = 0; i < EPIC_INT_NUM; i++) {
int_enabled[i] = false;
}
/* Reset interrupt is always enabled */
int_enabled[EPIC_INT_RESET] = true;
}
int epic_interrupt_enable(api_int_id_t int_id)
......@@ -41,7 +44,7 @@ int epic_interrupt_enable(api_int_id_t int_id)
int epic_interrupt_disable(api_int_id_t int_id)
{
if (int_id >= EPIC_INT_NUM) {
if (int_id >= EPIC_INT_NUM || int_id == EPIC_INT_RESET) {
return -EINVAL;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment