]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
ARM: net: bpf: improve 64-bit sign-extended immediate load
authorRussell King <rmk+kernel@armlinux.org.uk>
Thu, 12 Jul 2018 20:50:46 +0000 (21:50 +0100)
committerDaniel Borkmann <daniel@iogearbox.net>
Fri, 13 Jul 2018 13:26:41 +0000 (15:26 +0200)
commit077513b89424ba814432b1cd7d7f793958059ed8
tree65736a0782df90129a6b929afb830ebbd173808a
parentf9ff5018c13b4918c98178ee81d41372b455201e
ARM: net: bpf: improve 64-bit sign-extended immediate load

Improve the 64-bit sign-extended immediate from:

  mov     r6, #1
  str     r6, [fp, #-52]  ; 0xffffffcc
  mov     r6, #0
  str     r6, [fp, #-48]  ; 0xffffffd0

to:

  mov     r6, #1
  mov     r7, #0
  strd    r6, [fp, #-52]  ; 0xffffffcc

Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
arch/arm/net/bpf_jit_32.c