Commit c1b0a24b authored by Richard Weinberger's avatar Richard Weinberger Committed by Jan Kiszka

kernel: syscall: Correctly check for x32

Since 10.2 gcc it sets __ILP32__ even for i386.
To check for x32 we need to check for __x86_64__ being set too.
Signed-off-by: default avatarRichard Weinberger <richard@nod.at>
Signed-off-by: Jan Kiszka's avatarJan Kiszka <jan.kiszka@siemens.com>
parent 8b2052ea
......@@ -18,7 +18,7 @@
#ifndef _COBALT_X86_ASM_UAPI_SYSCALL_H
#define _COBALT_X86_ASM_UAPI_SYSCALL_H
#ifdef __ILP32__
#if defined(__x86_64__) && defined(__ILP32__)
#define __xn_syscall_base __COBALT_X32_BASE
#else
#define __xn_syscall_base 0
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment