Disable all interrupts on a core

apuder
Posts: 50
Joined: Mon Mar 26, 2018 7:27 pm

Disable all interrupts on a core

Postby apuder » Tue Jun 04, 2019 4:12 am

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

ESP_Sprite
Posts: 9051
Joined: Thu Nov 26, 2015 4:08 am

Re: Disable all interrupts on a core

Postby ESP_Sprite » Tue Jun 04, 2019 10:06 am

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.

apuder
Posts: 50
Joined: Mon Mar 26, 2018 7:27 pm

Re: Disable all interrupts on a core

Postby apuder » Tue Jun 04, 2019 3:59 pm

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.

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: Disable all interrupts on a core

Postby WiFive » Tue Jun 04, 2019 4:25 pm


apuder
Posts: 50
Joined: Mon Mar 26, 2018 7:27 pm

Re: Disable all interrupts on a core

Postby apuder » Tue Jun 04, 2019 7:21 pm

thx! Exactly what I've been looking for!

Who is online

Users browsing this forum: fanmen1 and 231 guests