xref: /linux/arch/nios2/include/asm/linkage.h (revision eed108edc1170404bbef9e7d0189d18a3cc354f5)
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3  * Copyright (C) 2009 Thomas Chou <thomas@wytron.com.tw>
4  *
5  * All rights reserved.
6  */
7 
8 #ifndef _ASM_NIOS2_LINKAGE_H
9 #define _ASM_NIOS2_LINKAGE_H
10 
11 /* This file is required by include/linux/linkage.h */
12 #define __ALIGN .align 4
13 #define __ALIGN_STR ".align 4"
14 
15 #define _THIS_IP_ ({ unsigned long __ip; asm volatile("nextpc %0" : "=r" (__ip)); __ip; })
16 
17 #endif
18