UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Participant thburghout
Participant
997 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
Scholar ericv
Scholar
951 Views
Registered: ‎04-13-2015

Re: Disable all interrupts

Jump to solution

@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

 

2 Replies
Scholar ericv
Scholar
952 Views
Registered: ‎04-13-2015

Re: Disable all interrupts

Jump to solution

@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

 

Participant thburghout
Participant
918 Views
Registered: ‎10-27-2017

Re: Disable all interrupts

Jump to solution
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