Nios® V Processor Software Developer Handbook

ID 743810
Date 10/12/2024
Public
Document Table of Contents

16.1.1.36. 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().