mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-08-16 01:17:01 +02:00
To make software license auditing simpler, use SPDX[0] license identifiers instead of duplicating the license text in every file. NOTE: Files that have been imported by FreeBSD have not been modified. [0]: https://spdx.org/ Change-Id: I80a00e1f641b8cc075ca5a95b10607ed9ed8761a Signed-off-by: dp-arm <dimitris.papastamos@arm.com>
27 lines
599 B
ArmAsm
27 lines
599 B
ArmAsm
/*
|
|
* Copyright (c) 2016, ARM Limited and Contributors. All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
#ifndef __ASSERT_MACROS_S__
|
|
#define __ASSERT_MACROS_S__
|
|
|
|
/*
|
|
* Assembler macro to enable asm_assert. We assume that the stack is
|
|
* initialized prior to invoking this macro.
|
|
*/
|
|
#define ASM_ASSERT(_cc) \
|
|
.ifndef .L_assert_filename ;\
|
|
.pushsection .rodata.str1.1, "aS" ;\
|
|
.L_assert_filename: ;\
|
|
.string __FILE__ ;\
|
|
.popsection ;\
|
|
.endif ;\
|
|
b##_cc 300f ;\
|
|
ldr r0, =.L_assert_filename ;\
|
|
ldr r1, =__LINE__ ;\
|
|
b asm_assert;\
|
|
300:
|
|
|
|
#endif /* __ASSERT_MACROS_S__ */
|