Go to the documentation of this file.
27 #ifndef __ARMV7_CPU_ASM_H__
28 #define __ARMV7_CPU_ASM_H__
39 #define Mode_UNDEF 0x1B
47 #define SCR_NS_BIT 0x1
48 #define SCR_FIQ_BIT 0x4
49 #define SCR_IRQ_BIT 0x2
51 #define CPSR_RESET_VAL 0x00000193
52 #define SCTLR_RESET_VAL 0x00c50078
54 #define AUXREG_SMP 0x41
56 #define AUXREG_SMP_ENABLE 0x40
59 #ifdef CONFIG_NEON_SUPPORT
61 #define FPEXC_EX (1 << 31)
62 #define FPEXC_EN (1 << 30)
63 #define MVFR0_A_SIMD_BIT (0)
64 #define MVFR0_A_SIMD_MASK (0xf << MVFR0_A_SIMD_BIT)
68 #define SCTLR_OFFSET 120
69 #define SPSR_MON_OFFSET 52
70 #define LR_MON_OFFSET 56
73 #define NS_PREEMPT_ENABLE 0x1
74 #define NS_PREEMPT_DISABLE 0x0
75 #define NS_SWITCH_ACTIVE 0x1
76 #define NS_SWITCH_CLEAR 0x0
79 #define INVOKE_NON_SECURE_KERNEL 0x0ffffff1
80 #define RET_FROM_SECURE_API 0x0ffffff2
81 #define INVOKE_NS_KER_SMP 0x0ffffff3
82 #define TZHYP_NSCPU_CTXT_INIT 0x0ffffff4
83 #define TZHYP_NSADMIN_RETURN 0x0ffffff5
85 #define SEC_SGI_TO_SECONDARY_CORE 0xB
86 #define SEC_SGI_TO_PRIMARY_CORE 0xA
89 #define STACK_SIZE_SHIFT 12
91 #define PARAM_STACK_SIZE 8
92 #define PARAM_STACK_SIZE_SHIFT 5
94 #define PARAM_OUT_STACK_SIZE 8
95 #define PARAM_OUT_STACK_SIZE_SHIFT 5
97 #define SYS_CONTEXT_CORE_SHIFT 8