Skip to content

Commit

Permalink
powerpc support in bpf_in_ia32_syscall
Browse files Browse the repository at this point in the history
Signed-off-by: Afsan Hossain <[email protected]>
  • Loading branch information
mdafsanhossain authored and poiana committed Nov 15, 2023
1 parent 03a1c9d commit 7092b1e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions driver/modern_bpf/helpers/extract/extract_from_kernel.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7092b1e

Please sign in to comment.