mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-05-08 10:08:47 +00:00
Separate out CASSERT macro into own header
Separate out the CASSERT macro out of bl_common.h into its own header to allow more efficient header inclusion. Change-Id: I291be0b6b8f9879645e839a8f0dd1ec9b3db9639
This commit is contained in:
parent
bee8241711
commit
bdbfc3c298
6 changed files with 46 additions and 11 deletions
|
@ -48,14 +48,6 @@
|
|||
#define BOT_LOAD !TOP_LOAD
|
||||
#define LOAD_MASK (1 << 0)
|
||||
|
||||
/*******************************************************************************
|
||||
* Macro to flag a compile time assertion. It uses the preprocessor to generate
|
||||
* an invalid C construct if 'cond' evaluates to false.
|
||||
* The following compilation error is triggered if the assertion fails:
|
||||
* "error: size of array 'msg' is negative"
|
||||
******************************************************************************/
|
||||
#define CASSERT(cond, msg) typedef char msg[(cond) ? 1 : -1]
|
||||
|
||||
/******************************************************************************
|
||||
* Opcode passed in x0 to tell next EL that we want to run an image.
|
||||
* Corresponds to the function ID of the only SMC that the BL1 exception
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue