178
SAM4CP [DATASHEET]
43051E–ATPL–08/14
12.6.12.9 SEV
Send Event.
Syntax
SEV{
cond
}
where:
cond
is an optional condition code, see
“Conditional Execution”
.
Operation
SEV is a hint instruction that causes an event to be signaled to all processors within a multiprocessor system. It also sets
the local event register to 1, see
“Power Management”
.
Condition Flags
This instruction does not change the flags.
Examples
SEV ; Send Event
12.6.12.10 SVC
Supervisor Call.
Syntax
SVC{
cond
} #
imm
where:
cond
is an optional condition code, see
“Conditional Execution”
.
imm
is an expression evaluating to an integer in the range 0-255 (8-bit value).
Operation
The SVC instruction causes the SVC exception.
imm
is ignored by the processor. If required, it can be retrieved by the exception handler to determine what service is
being requested.
Condition Flags
This instruction does not change the flags.
Examples
SVC 0x32 ; Supervisor Call (SVC handler can extract the immediate value
; by locating it via the stacked PC)
12.6.12.11 WFE
Wait For Event.
Syntax
WFE{
cond
}
where:
cond
is an optional condition code, see
“Conditional Execution”
.
Operation
WFE is a hint instruction.
If the event register is 0, WFE suspends execution until one of the following events occurs:
An exception, unless masked by the exception mask registers or the current priority level.
An exception enters the Pending state, if SEVONPEND in the System Control Register is set.
A Debug Entry request, if Debug is enabled.
An event signaled by a peripheral or another processor in a multiprocessor system using the SEV instruction.