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