Skip to content

Commit

Permalink
Merge pull request #622 from zhaixiaojuan/main
Browse files Browse the repository at this point in the history
Add macro pivot&bpf for loongarch64
  • Loading branch information
stgraber authored Jan 14, 2024
2 parents 1859046 + 10f17f5 commit 7d508df
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/syscall_numbers.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@
#if _MIPS_SIM == _MIPS_SIM_ABI64 /* n64 */
#define __NR_pivot_root 5151
#endif
#elif defined __loongarch64
#define __NR_pivot_root 41
#else
#define -1
#warning "__NR_pivot_root not defined for your architecture"
Expand Down Expand Up @@ -72,6 +74,8 @@
#if _MIPS_SIM == _MIPS_SIM_ABI64 /* n64 */
#define __NR_bpf 5315
#endif
#elif defined __loongarch64
#define __NR_bpf 280
#else
#define -1
#warning "__NR_bpf not defined for your architecture"
Expand Down

0 comments on commit 7d508df

Please sign in to comment.