From 8ea66a793982d1666a7699fd23afc12537b868cb Mon Sep 17 00:00:00 2001 From: Afsan Hossain Date: Mon, 13 Nov 2023 10:28:05 +0000 Subject: [PATCH] powerpc support in bpf_in_ia32_syscall Signed-off-by: Afsan Hossain --- driver/modern_bpf/helpers/extract/extract_from_kernel.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/driver/modern_bpf/helpers/extract/extract_from_kernel.h b/driver/modern_bpf/helpers/extract/extract_from_kernel.h index b98513382e..6c19d70b1d 100644 --- a/driver/modern_bpf/helpers/extract/extract_from_kernel.h +++ b/driver/modern_bpf/helpers/extract/extract_from_kernel.h @@ -72,6 +72,9 @@ static __always_inline bool bpf_in_ia32_syscall() #elif defined(__TARGET_ARCH_s390) READ_TASK_FIELD_INTO(&status, task, thread_info.flags); return status & _TIF_31BIT; +#elif defined(__TARGET_ARCH_powerpc) + READ_TASK_FIELD_INTO(&status, task, thread_info.flags); + return status & _TIF_32BIT; #else return false; #endif