Skip to content

Commit

Permalink
Add macro pivot&bpf for loongarch64
Browse files Browse the repository at this point in the history
Signed-off-by: zhaixiaojuan <[email protected]>
  • Loading branch information
zhaixiaojuan authored and stgraber committed Jan 14, 2024
1 parent 3612da7 commit 10f17f5
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 10f17f5

Please sign in to comment.