forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 748e4f3d702def1a4bff191e0cf93b6a05340f01
kernel/arch/arm/net/bpf_jit_32.h
....@@ -1,11 +1,8 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * Just-In-Time compiler for BPF filters on 32bit ARM
34 *
45 * Copyright (c) 2011 Mircea Gherzan <mgherzan@gmail.com>
5
- *
6
- * This program is free software; you can redistribute it and/or modify it
7
- * under the terms of the GNU General Public License as published by the
8
- * Free Software Foundation; version 2 of the License.
96 */
107
118 #ifndef PFILTER_OPCODES_ARM_H
....@@ -62,6 +59,7 @@
6259 #define ARM_INST_ADDS_I 0x02900000
6360
6461 #define ARM_INST_AND_R 0x00000000
62
+#define ARM_INST_ANDS_R 0x00100000
6563 #define ARM_INST_AND_I 0x02000000
6664
6765 #define ARM_INST_BIC_R 0x01c00000
....@@ -95,6 +93,9 @@
9593
9694 #define ARM_INST_LSR_I 0x01a00020
9795 #define ARM_INST_LSR_R 0x01a00030
96
+
97
+#define ARM_INST_ASR_I 0x01a00040
98
+#define ARM_INST_ASR_R 0x01a00050
9899
99100 #define ARM_INST_MOV_R 0x01a00000
100101 #define ARM_INST_MOVS_R 0x01b00000
....@@ -172,6 +173,7 @@
172173 #define ARM_ADC_I(rd, rn, imm) _AL3_I(ARM_INST_ADC, rd, rn, imm)
173174
174175 #define ARM_AND_R(rd, rn, rm) _AL3_R(ARM_INST_AND, rd, rn, rm)
176
+#define ARM_ANDS_R(rd, rn, rm) _AL3_R(ARM_INST_ANDS, rd, rn, rm)
175177 #define ARM_AND_I(rd, rn, imm) _AL3_I(ARM_INST_AND, rd, rn, imm)
176178
177179 #define ARM_BIC_R(rd, rn, rm) _AL3_R(ARM_INST_BIC, rd, rn, rm)