Skip to content

Commit eed108e

Browse files
committed
Merge tag 'nios2_updates_for_v7.2' of git://git.kernel.org/pub/scm/linux/kernel/git/dinguyen/linux
Pull nios2 fixes from Dinh Nguyen: - Implement _THIS_IP_ for inline asm - Add Simon Schuster as a maintainer and mark the NIOS2 as Supported * tag 'nios2_updates_for_v7.2' of git://git.kernel.org/pub/scm/linux/kernel/git/dinguyen/linux: nios2: Implement _THIS_IP_ using inline asm MAINTAINERS: arch/nios2: Add Simon Schuster as co-maintainer
2 parents 95e6d3b + e90ef85 commit eed108e

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

MAINTAINERS

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18947,7 +18947,8 @@ F: drivers/hid/hid-nintendo*
1894718947

1894818948
NIOS2 ARCHITECTURE
1894918949
M: Dinh Nguyen <dinguyen@kernel.org>
18950-
S: Maintained
18950+
M: Simon Schuster <schuster.simon@siemens-energy.com>
18951+
S: Supported
1895118952
T: git git://git.kernel.org/pub/scm/linux/kernel/git/dinguyen/linux.git
1895218953
F: arch/nios2/
1895318954

arch/nios2/include/asm/linkage.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,6 @@
1212
#define __ALIGN .align 4
1313
#define __ALIGN_STR ".align 4"
1414

15+
#define _THIS_IP_ ({ unsigned long __ip; asm volatile("nextpc %0" : "=r" (__ip)); __ip; })
16+
1517
#endif

0 commit comments

Comments
 (0)