summaryrefslogtreecommitdiff
path: root/include/linux/node.h
diff options
context:
space:
mode:
authorYonghong Song <yonghong.song@linux.dev>2026-04-23 06:35:06 +0300
committerAlexei Starovoitov <ast@kernel.org>2026-04-23 17:54:50 +0300
commit246ad6e5ee259669692bdb7fb353e8c5d5bba628 (patch)
treecf9cb1e8630835ace90217142b43b173e4784259 /include/linux/node.h
parent9b9f0b42703ceb88332bcb19453c4288c2683e34 (diff)
downloadlinux-246ad6e5ee259669692bdb7fb353e8c5d5bba628.tar.xz
bpf: Introduce bpf register BPF_REG_PARAMS
Introduce BPF_REG_PARAMS as a dedicated BPF register for stack argument accesses. It occupies the BPF register number 11 (R11), which is used as the base pointer for the stack argument area, keeping it separate from the R10-based (BPF_REG_FP) program stack. The kernel-internal hidden register BPF_REG_AX previously occupied slot 11 (MAX_BPF_REG). With BPF_REG_PARAMS taking that slot, BPF_REG_AX moves to slot 12 and MAX_BPF_EXT_REG increases accordingly. Acked-by: Puranjay Mohan <puranjay@kernel.org> Acked-by: Kumar Kartikeya Dwivedi <memxor@gmail.com> Signed-off-by: Yonghong Song <yonghong.song@linux.dev> Link: https://lore.kernel.org/r/20260423033506.2542005-1-yonghong.song@linux.dev Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'include/linux/node.h')
0 files changed, 0 insertions, 0 deletions