cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
thburghout
Participant
Participant
1,762 Views
Registered: ‎10-27-2017

Disable all interrupts

Jump to solution

Hi,

 

I want do implement a generic way of disabling all interrupts, specifically to be able to implement interrupt safe procedures in code used by all components (logging in this case). Is this possible at all? Do I need to disable each interrupt by hand?

 

Thanks for the help!

 

Thoma

0 Kudos
1 Solution

Accepted Solutions
ericv
Scholar
Scholar
1,716 Views
Registered: ‎04-13-2015

@thburghout

 

What is the target platform?

If it's the Zynq, you can do it with:

    asm(" cpsid  I");

If it's on the UltraScale+:

   asm(" msr  DAIFSET, #2")

I can't provide the info for other platforms

 

View solution in original post

2 Replies
ericv
Scholar
Scholar
1,717 Views
Registered: ‎04-13-2015

@thburghout

 

What is the target platform?

If it's the Zynq, you can do it with:

    asm(" cpsid  I");

If it's on the UltraScale+:

   asm(" msr  DAIFSET, #2")

I can't provide the info for other platforms

 

View solution in original post

thburghout
Participant
Participant
1,683 Views
Registered: ‎10-27-2017
It was the Zynq, apologies.

Thank you for providing the information. I decided not to support interrupt safety within the logger due to the use of heap allocated object. I will leave your answer for others.
0 Kudos