xref: /linux/arch/riscv/include/asm/linkage.h (revision 805185b7c7a1069e407b6f7b3bc98e44d415f484)
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3  * Copyright (C) 2015 Regents of the University of California
4  */
5 
6 #ifndef _ASM_RISCV_LINKAGE_H
7 #define _ASM_RISCV_LINKAGE_H
8 
9 #define __ALIGN		.balign 4
10 #define __ALIGN_STR	".balign 4"
11 
12 #define _THIS_IP_ ({ unsigned long __ip; asm volatile("auipc %0, 0" : "=r" (__ip)); __ip; })
13 
14 #endif /* _ASM_RISCV_LINKAGE_H */
15