Skip to content

Commit

Permalink
shared/cgo: Add loongarch64
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaixiaojuan committed Jan 6, 2024
1 parent 4eddfc6 commit 43fdb8e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions shared/cgo/syscall_numbers.h
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,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 Expand Up @@ -237,6 +239,8 @@
#if _MIPS_SIM == _MIPS_SIM_ABI64 /* n64 */
#define __NR_kcmp (306 + 5000)
#endif
#elif defined __loongarch64
#define __NR_kcmp 272
#else
#define -1
#warning "__NR_kcmp not defined for your architecture"
Expand Down

0 comments on commit 43fdb8e

Please sign in to comment.