Skip to content
Snippets Groups Projects
Commit a9633e87 authored by Hans-Peter Deifel's avatar Hans-Peter Deifel
Browse files

Check for individual interrupts before triggering

This allows the OS to selectively disable individual interrupts
instead of the previous all or nothing approach.

This is used to enforce the PROMISE=SERIALIZED property on the dosek
side.
parent 72b1c84a
No related branches found
No related tags found
No related merge requests found
...@@ -136,7 +136,7 @@ void _print_os_state(const char *format, const char *syscall, const char *func) ...@@ -136,7 +136,7 @@ void _print_os_state(const char *format, const char *syscall, const char *func)
} }
static forceinline int _do_trigger_interrupt(uint8_t i, const char *format, const char *syscall, const char *func) { static forceinline int _do_trigger_interrupt(uint8_t i, const char *format, const char *syscall, const char *func) {
if (arch::irq.interrupts_enabled()) { if (arch::irq.interrupts_enabled(i)) {
_print_os_state(format, syscall, func); _print_os_state(format, syscall, func);
arch::irq.deliver_interrupt(i); arch::irq.deliver_interrupt(i);
return 1; return 1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment