]> git.proxmox.com Git - mirror_lxcfs.git/commitdiff
Add macro pivot&bpf for loongarch64
authorzhaixiaojuan <zhaixiaojuan@loongson.cn>
Tue, 5 Dec 2023 07:06:10 +0000 (02:06 -0500)
committerStéphane Graber <stgraber@stgraber.org>
Sun, 14 Jan 2024 21:25:34 +0000 (16:25 -0500)
Signed-off-by: zhaixiaojuan <zhaixiaojuan@loongson.cn>
src/syscall_numbers.h

index c9006af3bd6e77e28a2b3601aabab3d2b0a3b73c..d9654a47648b1d59492e804022a3452c6799f50f 100644 (file)
@@ -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"
@@ -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"