| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Just-In-Time compiler for BPF filters on 32bit ARM |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * 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. |
|---|
| 9 | 6 | */ |
|---|
| 10 | 7 | |
|---|
| 11 | 8 | #ifndef PFILTER_OPCODES_ARM_H |
|---|
| .. | .. |
|---|
| 62 | 59 | #define ARM_INST_ADDS_I 0x02900000 |
|---|
| 63 | 60 | |
|---|
| 64 | 61 | #define ARM_INST_AND_R 0x00000000 |
|---|
| 62 | +#define ARM_INST_ANDS_R 0x00100000 |
|---|
| 65 | 63 | #define ARM_INST_AND_I 0x02000000 |
|---|
| 66 | 64 | |
|---|
| 67 | 65 | #define ARM_INST_BIC_R 0x01c00000 |
|---|
| .. | .. |
|---|
| 95 | 93 | |
|---|
| 96 | 94 | #define ARM_INST_LSR_I 0x01a00020 |
|---|
| 97 | 95 | #define ARM_INST_LSR_R 0x01a00030 |
|---|
| 96 | + |
|---|
| 97 | +#define ARM_INST_ASR_I 0x01a00040 |
|---|
| 98 | +#define ARM_INST_ASR_R 0x01a00050 |
|---|
| 98 | 99 | |
|---|
| 99 | 100 | #define ARM_INST_MOV_R 0x01a00000 |
|---|
| 100 | 101 | #define ARM_INST_MOVS_R 0x01b00000 |
|---|
| .. | .. |
|---|
| 172 | 173 | #define ARM_ADC_I(rd, rn, imm) _AL3_I(ARM_INST_ADC, rd, rn, imm) |
|---|
| 173 | 174 | |
|---|
| 174 | 175 | #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) |
|---|
| 175 | 177 | #define ARM_AND_I(rd, rn, imm) _AL3_I(ARM_INST_AND, rd, rn, imm) |
|---|
| 176 | 178 | |
|---|
| 177 | 179 | #define ARM_BIC_R(rd, rn, rm) _AL3_R(ARM_INST_BIC, rd, rn, rm) |
|---|