3.7.2. CPS

Change Processor State.

Syntax

CPSID i
CPSIE i

Operation

CPS changes the PRIMASK special register values. CPSID causes interrupts to be disabled by setting PRIMASK. CPSIE cause interrupts to be enabled by clearing PRIMASK.See Exception mask register for more information about these registers.

Restrictions

There are no restrictions.

Condition flags

This instruction does not change the condition flags.

Examples

    CPSID i ; Disable all interrupts except NMI (set PRIMASK)
    CPSIE i ; Enable interrupts (clear PRIMASK)
Copyright © 2009 ARM Limited. All rights reserved.ARM DUI 0497A
Non-Confidential