Nios® V Processor Software Developer Handbook

ID 743810
Date 5/26/2023
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

13.1.1.40. alt_irq_disable_all()

Prototype

alt_irq_context alt_irq_disable_all (void)

Commonly Called By

C/C++ programs

Device drivers

Thread-safe

Yes.

Available from ISR

No.

Include

<sys/alt_irq.h>

Description

The alt_irq_disable_all() function disables the processor's interrupt feature by clearing the Machine-mode Interrupt-Enable bit (mstatus.mie).

Return

Pass the return value as the input argument to a subsequent call to alt_irq_enable_all().