Skip to content

Commit

Permalink
Don't require R10 to be read-only
Browse files Browse the repository at this point in the history
Leave it up to the verifier

Signed-off-by: Dave Thaler <[email protected]>
  • Loading branch information
dthaler committed Sep 21, 2022
1 parent 7f65af4 commit 23a7bc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion isa/kernel.org/instruction-set.rst
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ The eBPF calling convention is defined as:
* R0: return value from function calls, and exit value for eBPF programs
* R1 - R5: arguments for function calls
* R6 - R9: callee saved registers that function calls will preserve
* R10: read-only frame pointer to access stack
* R10: frame pointer to access stack

Registers R0 - R5 are scratch registers, meaning the BPF program needs to either
spill them to the BPF stack or move them to callee saved registers if these
Expand Down

0 comments on commit 23a7bc1

Please sign in to comment.