3.12.14. WFI

Wait for Interrupt.

Syntax

WFI{cond}

Where:

cond

Is an optional condition code. See Conditional execution.

Operation

WFI is a hint instruction that suspends execution until one of the following events occurs:

  • A non-masked interrupt occurs and is taken.

  • An interrupt masked by PRIMASK becomes pending.

  • A Debug Entry request.

Condition flags

This instruction does not change the flags.

Examples

    WFI ; Wait for interrupt 

Copyright © 2015, 2018 Arm. All rights reserved.ARM DUI 0646C
Non-ConfidentialID121118