Merge tag 'audit-pr-20190507' of git://git.kernel.org/pub/scm/linux/kernel/git/pcmoor...
[sfrench/cifs-2.6.git] / arch / c6x / include / asm / syscall.h
index 15ba8599858e6be5a860e23f338c8bd292da7207..5bcdcb651b193ee1c7ea2ca5de4a21085e76d681 100644 (file)
@@ -11,6 +11,7 @@
 #ifndef __ASM_C6X_SYSCALL_H
 #define __ASM_C6X_SYSCALL_H
 
+#include <uapi/linux/audit.h>
 #include <linux/err.h>
 #include <linux/sched.h>
 
@@ -69,4 +70,10 @@ static inline void syscall_set_arguments(struct task_struct *task,
        regs->a9 = *args;
 }
 
+static inline int syscall_get_arch(struct task_struct *task)
+{
+       return IS_ENABLED(CONFIG_CPU_BIG_ENDIAN)
+               ? AUDIT_ARCH_C6XBE : AUDIT_ARCH_C6X;
+}
+
 #endif /* __ASM_C6X_SYSCALLS_H */