Lines Matching +full:riscv +full:- +full:isa +full:- +full:manual
1 /* SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause) */
114 /* i386 kernel is built with -mregparm=3 */
161 * https://github.com/IBM/s390x-abi/releases/download/v1.6/lzsabi_s390x.pdf
195 * https://github.com/ARM-software/abi-aa/blob/main/aapcs32/aapcs32.rst#machine-registers
220 * https://github.com/ARM-software/abi-aa/blob/main/aapcs64/aapcs64.rst#machine-registers
286 * http://refspecs.linux-foundation.org/elf/elfspec_ppc.pdf (page 3-14,
351 …* https://github.com/riscv-non-isa/riscv-elf-psabi-doc/blob/master/riscv-cc.adoc#risc-v-calling-co…
354 /* riscv provides struct user_regs_struct instead of struct pt_regs to userspace */
382 …* https://raw.githubusercontent.com/wiki/foss-for-synopsys-dwc-arc-processors/toolchain/files/ARCv…
415 * https://loongson.github.io/LoongArch-Documentation/LoongArch-ELF-ABI-EN.html
475 * Similarly, syscall-specific conventions might differ between function call
485 #define PT_REGS_PARM1(x) (__PT_REGS_CAST(x)->__PT_PARM1_REG)
486 #define PT_REGS_PARM2(x) (__PT_REGS_CAST(x)->__PT_PARM2_REG)
487 #define PT_REGS_PARM3(x) (__PT_REGS_CAST(x)->__PT_PARM3_REG)
488 #define PT_REGS_PARM4(x) (__PT_REGS_CAST(x)->__PT_PARM4_REG)
489 #define PT_REGS_PARM5(x) (__PT_REGS_CAST(x)->__PT_PARM5_REG)
490 #define PT_REGS_PARM6(x) (__PT_REGS_CAST(x)->__PT_PARM6_REG)
491 #define PT_REGS_PARM7(x) (__PT_REGS_CAST(x)->__PT_PARM7_REG)
492 #define PT_REGS_PARM8(x) (__PT_REGS_CAST(x)->__PT_PARM8_REG)
493 #define PT_REGS_RET(x) (__PT_REGS_CAST(x)->__PT_RET_REG)
494 #define PT_REGS_FP(x) (__PT_REGS_CAST(x)->__PT_FP_REG)
495 #define PT_REGS_RC(x) (__PT_REGS_CAST(x)->__PT_RC_REG)
496 #define PT_REGS_SP(x) (__PT_REGS_CAST(x)->__PT_SP_REG)
497 #define PT_REGS_IP(x) (__PT_REGS_CAST(x)->__PT_IP_REG)
515 #define BPF_KPROBE_READ_RET_IP(ip, ctx) ({ (ip) = (ctx)->link; })
533 #define PT_REGS_PARM1_SYSCALL(x) (__PT_REGS_CAST(x)->__PT_PARM1_SYSCALL_REG)
537 #define PT_REGS_PARM2_SYSCALL(x) (__PT_REGS_CAST(x)->__PT_PARM2_SYSCALL_REG)
541 #define PT_REGS_PARM3_SYSCALL(x) (__PT_REGS_CAST(x)->__PT_PARM3_SYSCALL_REG)
545 #define PT_REGS_PARM4_SYSCALL(x) (__PT_REGS_CAST(x)->__PT_PARM4_SYSCALL_REG)
549 #define PT_REGS_PARM5_SYSCALL(x) (__PT_REGS_CAST(x)->__PT_PARM5_SYSCALL_REG)
553 #define PT_REGS_PARM6_SYSCALL(x) (__PT_REGS_CAST(x)->__PT_PARM6_SYSCALL_REG)
557 #define PT_REGS_PARM7_SYSCALL(x) (__PT_REGS_CAST(x)->__PT_PARM7_SYSCALL_REG)
655 * manual casts and work with array elements by index, BPF_PROG macro
672 _Pragma("GCC diagnostic ignored \"-Wint-conversion\"") \
721 #define ___bpf_ctx_arg1(n, t, x) , ___bpf_union_arg(t, x, n - ___bpf_reg_cnt1(t, x))
722 #define ___bpf_ctx_arg2(n, t, x, args...) , ___bpf_union_arg(t, x, n - ___bpf_reg_cnt2(t, x, args))…
723 #define ___bpf_ctx_arg3(n, t, x, args...) , ___bpf_union_arg(t, x, n - ___bpf_reg_cnt3(t, x, args))…
724 #define ___bpf_ctx_arg4(n, t, x, args...) , ___bpf_union_arg(t, x, n - ___bpf_reg_cnt4(t, x, args))…
725 #define ___bpf_ctx_arg5(n, t, x, args...) , ___bpf_union_arg(t, x, n - ___bpf_reg_cnt5(t, x, args))…
726 #define ___bpf_ctx_arg6(n, t, x, args...) , ___bpf_union_arg(t, x, n - ___bpf_reg_cnt6(t, x, args))…
727 #define ___bpf_ctx_arg7(n, t, x, args...) , ___bpf_union_arg(t, x, n - ___bpf_reg_cnt7(t, x, args))…
728 #define ___bpf_ctx_arg8(n, t, x, args...) , ___bpf_union_arg(t, x, n - ___bpf_reg_cnt8(t, x, args))…
729 #define ___bpf_ctx_arg9(n, t, x, args...) , ___bpf_union_arg(t, x, n - ___bpf_reg_cnt9(t, x, args))…
730 #define ___bpf_ctx_arg10(n, t, x, args...) , ___bpf_union_arg(t, x, n - ___bpf_reg_cnt10(t, x, args…
731 #define ___bpf_ctx_arg11(n, t, x, args...) , ___bpf_union_arg(t, x, n - ___bpf_reg_cnt11(t, x, args…
732 #define ___bpf_ctx_arg12(n, t, x, args...) , ___bpf_union_arg(t, x, n - ___bpf_reg_cnt12(t, x, args…
801 * tp_btf/fentry/fexit BPF programs. It hides the underlying platform-specific
802 * low-level way of getting kprobe input arguments from struct pt_regs, and
816 _Pragma("GCC diagnostic ignored \"-Wint-conversion\"") \
840 _Pragma("GCC diagnostic ignored \"-Wint-conversion\"") \
871 * platform-specific low-level way of getting syscall input arguments from
881 * - mmap(): __ARCH_WANT_SYS_OLD_MMAP.
882 * - clone(): CONFIG_CLONE_BACKWARDS, CONFIG_CLONE_BACKWARDS2 and
884 * - socket-related syscalls: __ARCH_WANT_SYS_SOCKETCALL.
885 * - compat syscalls.
890 * This macro relies on BPF CO-RE support and virtual __kconfig externs.
903 _Pragma("GCC diagnostic ignored \"-Wint-conversion\"") \