aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/sparc/include/asm/syscall.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/sparc/include/asm/syscall.h b/arch/sparc/include/asm/syscall.h
index fed3d511b108..a5a8153766b3 100644
--- a/arch/sparc/include/asm/syscall.h
+++ b/arch/sparc/include/asm/syscall.h
@@ -128,8 +128,12 @@ static inline void syscall_set_arguments(struct task_struct *task,
128 128
129static inline int syscall_get_arch(void) 129static inline int syscall_get_arch(void)
130{ 130{
131#if defined(__sparc__) && defined(__arch64__)
131 return test_thread_flag(TIF_32BIT) ? AUDIT_ARCH_SPARC 132 return test_thread_flag(TIF_32BIT) ? AUDIT_ARCH_SPARC
132 : AUDIT_ARCH_SPARC64; 133 : AUDIT_ARCH_SPARC64;
134#else
135 return AUDIT_ARCH_SPARC;
136#endif
133} 137}
134 138
135#endif /* __ASM_SPARC_SYSCALL_H */ 139#endif /* __ASM_SPARC_SYSCALL_H */