OSDN Git Service

bpf: x86: Factor out emission of REX byte
authorBrendan Jackman <jackmanb@google.com>
Thu, 14 Jan 2021 18:17:42 +0000 (18:17 +0000)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 15 Jan 2021 02:34:28 +0000 (18:34 -0800)
commit74007cfc1f71e47394ca173b93d28afd0529fc86
tree00797820507c2ca7434b59d18d6e67aa131d7177
parent11c11d0751fce605090761f9c066bae947a35e76
bpf: x86: Factor out emission of REX byte

The JIT case for encoding atomic ops is about to get more
complicated. In order to make the review & resulting code easier,
let's factor out some shared helpers.

Signed-off-by: Brendan Jackman <jackmanb@google.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: John Fastabend <john.fastabend@gmail.com>
Link: https://lore.kernel.org/bpf/20210114181751.768687-3-jackmanb@google.com
arch/x86/net/bpf_jit_comp.c