summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorPuranjay Mohan <puranjay12@gmail.com>2023-09-07 23:05:47 +0000
committerAlexei Starovoitov <ast@kernel.org>2023-09-15 17:16:56 -0700
commit71086041c2ba04aa436a4b2283c708345e72a0bb (patch)
tree991c1dd9e23ea4d8dfdbbea90ab692ba0208dca9 /kernel
parent5097faa559a6097de436bdff4027d036b5493d1a (diff)
downloadlinux-stable-71086041c2ba04aa436a4b2283c708345e72a0bb.tar.gz
linux-stable-71086041c2ba04aa436a4b2283c708345e72a0bb.tar.bz2
linux-stable-71086041c2ba04aa436a4b2283c708345e72a0bb.zip
arm32, bpf: add support for 64 bit division instruction
ARM32 doesn't have instructions to do 64-bit/64-bit divisions. So, to implement the following instructions: BPF_ALU64 | BPF_DIV BPF_ALU64 | BPF_MOD BPF_ALU64 | BPF_SDIV BPF_ALU64 | BPF_SMOD We implement the above instructions by doing function calls to div64_u64() and div64_u64_rem() for unsigned division/mod and calls to div64_s64() for signed division/mod. Signed-off-by: Puranjay Mohan <puranjay12@gmail.com> Reviewed-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk> Link: https://lore.kernel.org/r/20230907230550.1417590-7-puranjay12@gmail.com Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions