2020-03-11 10:46:07 +01:00
|
|
|
/*
|
|
|
|
* Macros for asm code.
|
|
|
|
*
|
|
|
|
* Copyright (c) 2019, Arm Limited.
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _ASMDEFS_H
|
|
|
|
#define _ASMDEFS_H
|
|
|
|
|
2020-03-11 16:45:00 +01:00
|
|
|
#define ENTRY_ALIGN(name, alignment) \
|
|
|
|
.global name; \
|
|
|
|
.type name,%function; \
|
|
|
|
.align alignment; \
|
|
|
|
name: \
|
2020-03-11 10:46:07 +01:00
|
|
|
.cfi_startproc;
|
|
|
|
|
2020-03-11 16:45:00 +01:00
|
|
|
#define ENTRY(name) ENTRY_ALIGN(name, 6)
|
2020-03-11 10:46:07 +01:00
|
|
|
|
2020-03-11 16:45:00 +01:00
|
|
|
#define ENTRY_ALIAS(name) \
|
|
|
|
.global name; \
|
|
|
|
.type name,%function; \
|
2020-03-11 10:46:07 +01:00
|
|
|
name:
|
|
|
|
|
2020-03-11 16:45:00 +01:00
|
|
|
#define END(name) \
|
|
|
|
.cfi_endproc; \
|
2020-03-11 10:46:07 +01:00
|
|
|
.size name, .-name;
|
|
|
|
|
|
|
|
#define L(l) .L ## l
|
|
|
|
|
|
|
|
#endif
|