mirror of
https://github.com/Atmosphere-NX/Atmosphere
synced 2024-12-16 04:42:28 +00:00
32 lines
495 B
C
32 lines
495 B
C
|
/*
|
||
|
* Macros for asm code.
|
||
|
*
|
||
|
* Copyright (c) 2019, Arm Limited.
|
||
|
* SPDX-License-Identifier: MIT
|
||
|
*/
|
||
|
|
||
|
#ifndef _ASMDEFS_H
|
||
|
#define _ASMDEFS_H
|
||
|
|
||
|
#define ENTRY_ALIGN(name, alignment) \
|
||
|
.global name; \
|
||
|
.type name,%function; \
|
||
|
.align alignment; \
|
||
|
name: \
|
||
|
.cfi_startproc;
|
||
|
|
||
|
#define ENTRY(name) ENTRY_ALIGN(name, 6)
|
||
|
|
||
|
#define ENTRY_ALIAS(name) \
|
||
|
.global name; \
|
||
|
.type name,%function; \
|
||
|
name:
|
||
|
|
||
|
#define END(name) \
|
||
|
.cfi_endproc; \
|
||
|
.size name, .-name;
|
||
|
|
||
|
#define L(l) .L ## l
|
||
|
|
||
|
#endif
|