Interface RAISE_SPLX

Preprocessor macro expanding to a command

SpaceUser/kernel
ContextSync/async
May blockNo
SPLAny
Dynamic memoryNo

#include <SPAD/AC.H>

RAISE_SPLX(splx)

Description

Raises SPL to a given value. splx must be higher or equal than current SPL (KERNEL$SPL). This macro issues a proper compiler memory-barrier, so that the compiler doesn't try to reorder code around SPL-raising instruction.

Arguments

Implementation note

When __DEBUG is >= 2, the macro performs a check if current SPL is lower or equal than new SPL. It also performs a check if the argument is correct.

See also

LOWER_SPL, LOWER_SPLX, RAISE_SPL SPL_X