Page 1 of 1

Disable all interrupts on a core

Posted: Tue Jun 04, 2019 4:12 am
by apuder
Hi,
is there a way to disable all interrupts on a core? I was looking for an assembly instruction that would do that but cannot find one.
TIA,
AP

Re: Disable all interrupts on a core

Posted: Tue Jun 04, 2019 10:06 am
by ESP_Sprite
What problem are you trying to solve by disabling all interrupts? There's a few good reasons to want to do that, but a whole lot of bad ones.

Re: Disable all interrupts on a core

Posted: Tue Jun 04, 2019 3:59 pm
by apuder
I am using an ESP to serve the I/O bus of an old 8-bit CPU (a Z80). The ROM running on the Z80 sometimes runs a tight loop where it constantly polls the I/O bus. I want to make serving the Z80's I/O bus as deterministic as possible by dedicating one core to that task. That core will constantly poll the I/O bus and I want to avoid any other "distractions" (such as time interrupts on that core). I did disable the timer watchdog on that core but I suspect it will still serve timer interrupts.

Re: Disable all interrupts on a core

Posted: Tue Jun 04, 2019 4:25 pm
by WiFive

Re: Disable all interrupts on a core

Posted: Tue Jun 04, 2019 7:21 pm
by apuder
thx! Exactly what I've been looking for!