/kernel/linux/linux-5.10/arch/arm/probes/ |
D | decode.c | 84 static unsigned long __kprobes __check_eq(unsigned long cpsr) in __check_eq() argument 86 return cpsr & PSR_Z_BIT; in __check_eq() 89 static unsigned long __kprobes __check_ne(unsigned long cpsr) in __check_ne() argument 91 return (~cpsr) & PSR_Z_BIT; in __check_ne() 94 static unsigned long __kprobes __check_cs(unsigned long cpsr) in __check_cs() argument 96 return cpsr & PSR_C_BIT; in __check_cs() 99 static unsigned long __kprobes __check_cc(unsigned long cpsr) in __check_cc() argument 101 return (~cpsr) & PSR_C_BIT; in __check_cc() 104 static unsigned long __kprobes __check_mi(unsigned long cpsr) in __check_mi() argument 106 return cpsr & PSR_N_BIT; in __check_mi() [all …]
|
D | decode-thumb.h | 17 #define in_it_block(cpsr) ((cpsr & 0x06000c00) != 0x00000000) argument 24 #define current_cond(cpsr) ((cpsr >> 12) & 0xf) argument
|
D | decode.h | 41 long cpsr = regs->ARM_cpsr; in bx_write_pc() local 43 cpsr |= PSR_T_BIT; in bx_write_pc() 46 cpsr &= ~PSR_T_BIT; in bx_write_pc() 49 regs->ARM_cpsr = cpsr; in bx_write_pc()
|
D | decode-thumb.c | 836 static unsigned long __kprobes thumb_check_cc(unsigned long cpsr) in thumb_check_cc() argument 838 if (unlikely(in_it_block(cpsr))) in thumb_check_cc() 839 return probes_condition_checks[current_cond(cpsr)](cpsr); in thumb_check_cc()
|
/kernel/linux/linux-5.10/arch/arm64/kvm/hyp/ |
D | aarch32.c | 49 unsigned long cpsr; in kvm_condition_valid32() local 62 cpsr = *vcpu_cpsr(vcpu); in kvm_condition_valid32() 68 it = ((cpsr >> 8) & 0xFC) | ((cpsr >> 25) & 0x3); in kvm_condition_valid32() 78 cpsr_cond = cpsr >> 28; in kvm_condition_valid32() 99 unsigned long cpsr = *vcpu_cpsr(vcpu); in kvm_adjust_itstate() local 100 bool is_arm = !(cpsr & PSR_AA32_T_BIT); in kvm_adjust_itstate() 102 if (is_arm || !(cpsr & PSR_AA32_IT_MASK)) in kvm_adjust_itstate() 105 cond = (cpsr & 0xe000) >> 13; in kvm_adjust_itstate() 106 itbits = (cpsr & 0x1c00) >> (10 - 2); in kvm_adjust_itstate() 107 itbits |= (cpsr & (0x3 << 25)) >> 25; in kvm_adjust_itstate() [all …]
|
/kernel/linux/linux-5.10/arch/arm/probes/kprobes/ |
D | actions-arm.c | 170 unsigned long cpsr = regs->ARM_cpsr; in emulate_rd12rn16rm0rs8_rwflags() local 176 : "=r" (rdv), [cpsr] "=r" (cpsr) in emulate_rd12rn16rm0rs8_rwflags() 178 "1" (cpsr), [fn] "r" (asi->insn_fn) in emulate_rd12rn16rm0rs8_rwflags() 186 regs->ARM_cpsr = (regs->ARM_cpsr & ~APSR_MASK) | (cpsr & APSR_MASK); in emulate_rd12rn16rm0rs8_rwflags() 200 unsigned long cpsr = regs->ARM_cpsr; in emulate_rd12rn16rm0_rwflags_nopc() local 206 : "=r" (rdv), [cpsr] "=r" (cpsr) in emulate_rd12rn16rm0_rwflags_nopc() 208 "1" (cpsr), [fn] "r" (asi->insn_fn) in emulate_rd12rn16rm0_rwflags_nopc() 213 regs->ARM_cpsr = (regs->ARM_cpsr & ~APSR_MASK) | (cpsr & APSR_MASK); in emulate_rd12rn16rm0_rwflags_nopc() 230 unsigned long cpsr = regs->ARM_cpsr; in emulate_rd16rn12rm0rs8_rwflags_nopc() local 236 : "=r" (rdv), [cpsr] "=r" (cpsr) in emulate_rd16rn12rm0rs8_rwflags_nopc() [all …]
|
D | actions-thumb.c | 221 unsigned long cpsr = regs->ARM_cpsr; in t32_emulate_rd8rn16rm0_rwflags() local 227 : "=r" (rdv), [cpsr] "=r" (cpsr) in t32_emulate_rd8rn16rm0_rwflags() 229 "1" (cpsr), [fn] "r" (asi->insn_fn) in t32_emulate_rd8rn16rm0_rwflags() 234 regs->ARM_cpsr = (regs->ARM_cpsr & ~APSR_MASK) | (cpsr & APSR_MASK); in t32_emulate_rd8rn16rm0_rwflags() 388 unsigned long cpsr = regs->ARM_cpsr; in t16_simulate_it() local 389 cpsr &= ~PSR_IT_MASK; in t16_simulate_it() 390 cpsr |= (insn & 0xfc) << 8; in t16_simulate_it() 391 cpsr |= (insn & 0x03) << 25; in t16_simulate_it() 392 regs->ARM_cpsr = cpsr; in t16_simulate_it() 475 unsigned long cpsr = t16_emulate_loregs(insn, asi, regs); in t16_emulate_loregs_noitrwflags() local [all …]
|
D | test-core.c | 1010 static unsigned long test_check_cc(int cc, unsigned long cpsr) in test_check_cc() argument 1012 int ret = arm_check_condition(cc << 28, cpsr); in test_check_cc() 1023 unsigned long cpsr; in test_context_cpsr() local 1028 cpsr = (scenario & 0xf) << 28; /* N,Z,C,V flags */ in test_context_cpsr() 1029 cpsr |= (scenario & 0xf) << 16; /* GE flags */ in test_context_cpsr() 1030 cpsr |= (scenario & 0x1) << 27; /* Toggle Q flag */ in test_context_cpsr() 1036 probe_should_run = test_check_cc(cc, cpsr) != 0; in test_context_cpsr() 1044 probe_should_run = test_check_cc(cc, cpsr) != 0; in test_context_cpsr() 1064 cpsr |= cond_base << 13; /* ITSTATE<7:5> */ in test_context_cpsr() 1065 cpsr |= (mask & 0x1) << 12; /* ITSTATE<4> */ in test_context_cpsr() [all …]
|
/kernel/linux/linux-5.10/drivers/firmware/efi/libstub/ |
D | arm32-stub.c | 14 static void get_cpu_state(u32 *cpsr, u32 *sctlr) in get_cpu_state() argument 16 asm("mrs %0, cpsr" : "=r"(*cpsr)); in get_cpu_state() 17 if ((*cpsr & MODE_MASK) == HYP_MODE) in get_cpu_state() 26 u32 cpsr, sctlr; in check_platform_features() local 29 get_cpu_state(&cpsr, &sctlr); in check_platform_features() 32 ((cpsr & MODE_MASK) == HYP_MODE) ? "HYP" : "SVC", in check_platform_features() 43 efi_entry_state->cpsr_before_ebs = cpsr; in check_platform_features()
|
/kernel/linux/linux-5.10/arch/arm/include/asm/ |
D | ptrace.h | 175 static inline unsigned long it_advance(unsigned long cpsr) in it_advance() argument 177 if ((cpsr & 0x06000400) == 0) { in it_advance() 179 cpsr &= ~PSR_IT_MASK; in it_advance() 183 unsigned long it = cpsr & mask; in it_advance() 187 cpsr &= ~mask; in it_advance() 188 cpsr |= it; in it_advance() 190 return cpsr; in it_advance()
|
D | assembler.h | 166 mrs \oldcpsr, cpsr 175 mrs \oldcpsr, cpsr 352 mrs \reg , cpsr
|
/kernel/linux/linux-5.10/arch/arm64/kvm/ |
D | trace_arm.h | 119 unsigned long cpsr), 120 TP_ARGS(vcpu_pc, instr, cpsr), 125 __field( unsigned long, cpsr ) 131 __entry->cpsr = cpsr; 135 __entry->vcpu_pc, __entry->instr, __entry->cpsr)
|
D | inject_fault.c | 125 unsigned long cpsr = *vcpu_cpsr(vcpu); in inject_abt64() local 144 if (is_aarch32 || (cpsr & PSR_MODE_MASK) == PSR_MODE_EL0t) in inject_abt64()
|
/kernel/linux/linux-5.10/arch/arm/kernel/ |
D | signal.c | 369 unsigned long cpsr = regs->ARM_cpsr & ~(PSR_f | PSR_E_BIT); in setup_return() local 381 cpsr |= PSR_ENDSTATE; in setup_return() 387 cpsr = (cpsr & ~MODE_MASK) | USR_MODE; in setup_return() 408 cpsr &= ~PSR_IT_MASK; in setup_return() 411 cpsr |= PSR_T_BIT; in setup_return() 413 cpsr &= ~PSR_T_BIT; in setup_return() 452 if (cpsr & MODE32_BIT) { in setup_return() 482 regs->ARM_cpsr = cpsr; in setup_return()
|
D | fiqasm.S | 27 mrs r1, cpsr 40 mrs r1, cpsr
|
D | hyp-stub.S | 30 mrs \reg1, cpsr 80 mrs r4, cpsr
|
D | iwmmxt.S | 197 mrs ip, cpsr 249 mrs ip, cpsr 287 mrs ip, cpsr 354 mrs r2, cpsr
|
D | entry-header.S | 179 mrs \rtemp, cpsr 191 mrs \rtemp, cpsr 330 ldr r1, [sp, #\offset + S_PSR] @ get calling cpsr 346 movs pc, lr @ return & move spsr_svc into cpsr
|
/kernel/linux/linux-5.10/drivers/spi/ |
D | spi-ep93xx.c | 117 int cpsr, scr; in ep93xx_spi_calc_divisors() local 133 for (cpsr = 2; cpsr <= 254; cpsr += 2) { in ep93xx_spi_calc_divisors() 135 if ((spi_clk_rate / (cpsr * (scr + 1))) <= rate) { in ep93xx_spi_calc_divisors() 137 *div_cpsr = (u8)cpsr; in ep93xx_spi_calc_divisors()
|
/kernel/liteos_a/arch/arm/arm/src/ |
D | los_hw_exc.S | 176 …SRSFD #CPSR_SVC_MODE! @ Save pc and cpsr to svc sp, ARMv6 and … 192 …SRSFD #CPSR_SVC_MODE! @ Save pc and cpsr to svc sp, ARMv6 and … 257 …SRSFD #CPSR_SVC_MODE! @ Save pc and cpsr to svc sp, ARMv6 and a… 299 …SRSFD #CPSR_SVC_MODE! @ Save pc and cpsr to svc sp, ARMv6 and a… 347 …SRSFD #CPSR_SVC_MODE! @ Save pc and cpsr to svc sp, ARMv6 and a… 365 …SRSFD #CPSR_SVC_MODE! @ Save pc and cpsr to svc sp, ARMv6 and a…
|
/kernel/linux/linux-5.10/arch/arm/mach-rpc/ |
D | ecard-loader.S | 13 mrs rt, cpsr; \
|
/kernel/linux/linux-5.10/arch/arm/mach-ep93xx/ |
D | crunch-bits.S | 209 mrs ip, cpsr 255 mrs ip, cpsr 288 mrs ip, cpsr
|
/kernel/linux/linux-5.10/arch/arm/mm/ |
D | proc-feroceon.S | 248 mrs r2, cpsr 289 mrs r2, cpsr 325 mrs r2, cpsr 356 mrs r2, cpsr
|
/kernel/liteos_a/arch/arm/arm/src/startup/ |
D | reset_vector_up.S | 204 msr cpsr, r0 301 msr cpsr, r0
|
D | reset_vector_mp.S | 221 msr cpsr, r0 311 msr cpsr, r0
|