|
113 | 113 | /* Register-based PAN access, for save/restore purposes */ |
114 | 114 | #define SYS_PSTATE_PAN sys_reg(3, 0, 4, 2, 3) |
115 | 115 |
|
116 | | -#define __SYS_BARRIER_INSN(CRm, op2, Rt) \ |
117 | | - __emit_inst(0xd5000000 | sys_insn(0, 3, 3, (CRm), (op2)) | ((Rt) & 0x1f)) |
118 | | - |
119 | | -#define SB_BARRIER_INSN __SYS_BARRIER_INSN(0, 7, 31) |
| 116 | +#define __SYS_BARRIER_INSN(op0, op1, CRn, CRm, op2, Rt) \ |
| 117 | + __emit_inst(0xd5000000 | \ |
| 118 | + sys_insn((op0), (op1), (CRn), (CRm), (op2)) | \ |
| 119 | + ((Rt) & 0x1f)) |
| 120 | + |
| 121 | +#define SB_BARRIER_INSN __SYS_BARRIER_INSN(0, 3, 3, 0, 7, 31) |
| 122 | +#define GSB_SYS_BARRIER_INSN __SYS_BARRIER_INSN(1, 0, 12, 0, 0, 31) |
| 123 | +#define GSB_ACK_BARRIER_INSN __SYS_BARRIER_INSN(1, 0, 12, 0, 1, 31) |
120 | 124 |
|
121 | 125 | /* Data cache zero operations */ |
122 | 126 | #define SYS_DC_ISW sys_insn(1, 0, 7, 6, 2) |
|
0 commit comments