7eac1da9be
This is needed at least for bpf, btrfs, and sg_io, as 32-bit tracer cannot figure out whether the kernel is 32-bit or 64-bit, and its behaviour differs when it handles u64 as a pointer. * linux/arch_defs_.h [!CAN_ARCH_BE_COMPAT_ON_64BIT_KERNEL] (CAN_ARCH_BE_COMPAT_ON_64BIT_KERNEL): New definition, default to 0. * linux/arm/arch_defs_.h (CAN_ARCH_BE_COMPAT_ON_64BIT_KERNEL): Define to 1. * linux/i386/arch_defs_.h (CAN_ARCH_BE_COMPAT_ON_64BIT_KERNEL): Likewise. * linux/mips/arch_defs_.h (CAN_ARCH_BE_COMPAT_ON_64BIT_KERNEL): Likewise. * linux/powerpc/arch_defs_.h (CAN_ARCH_BE_COMPAT_ON_64BIT_KERNEL): Likewise. * linux/riscv/arch_defs_.h (CAN_ARCH_BE_COMPAT_ON_64BIT_KERNEL): Likewise. * linux/s390/arch_defs_.h (CAN_ARCH_BE_COMPAT_ON_64BIT_KERNEL): Likewise. * linux/sparc/arch_defs_.h (CAN_ARCH_BE_COMPAT_ON_64BIT_KERNEL): Likewise. * linux/tile/arch_defs_.h (CAN_ARCH_BE_COMPAT_ON_64BIT_KERNEL): Likewise. * defs.h (print_big_u64_addr): New function. Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
4 lines
114 B
C
4 lines
114 B
C
#define HAVE_ARCH_OLD_SELECT 1
|
|
#define HAVE_ARCH_DEDICATED_ERR_REG 1
|
|
#define CAN_ARCH_BE_COMPAT_ON_64BIT_KERNEL 1
|