| /optee_os/core/arch/arm/kernel/ |
| H A D | asm-defines.c | 43 DEFINE(THREAD_CORE_LOCAL_R0, offsetof(struct thread_core_local, r[0])); 45 offsetof(struct thread_core_local, sm_pm_ctx_phys)); 114 DEFINE(THREAD_CORE_LOCAL_X0, offsetof(struct thread_core_local, x[0])); 115 DEFINE(THREAD_CORE_LOCAL_X2, offsetof(struct thread_core_local, x[2])); 117 offsetof(struct thread_core_local, kcode_offset)); 120 offsetof(struct thread_core_local, bhb_loop_count)); 124 offsetof(struct thread_core_local, keys)); 139 offsetof(struct thread_core_local, tmp_stack_va_end)); 142 offsetof(struct thread_core_local, tmp_stack_pa_end)); 145 offsetof(struct thread_core_local, curr_thread)); [all …]
|
| H A D | thread.c | 49 ROUNDUP(sizeof(struct thread_core_local) * CFG_TEE_CORE_NB_CORE, 224 struct thread_core_local *l = thread_get_core_local(); in __thread_alloc_and_run() 366 struct thread_core_local *l = thread_get_core_local(); in thread_resume_from_rpc() 433 struct thread_core_local *l = thread_get_core_local(); in thread_get_saved_thread_sp() 450 struct thread_core_local *l = thread_get_core_local(); in thread_state_free() 501 struct thread_core_local *l = thread_get_core_local(); in thread_state_suspend() 554 set_core_local_kcode_offset(struct thread_core_local *cls, long offset) in set_core_local_kcode_offset() 575 set_core_local_kcode_offset(thread_core_local, in init_user_kcode() 586 thread_user_kdata_sp_offset = (vaddr_t)thread_core_local - v; in init_user_kcode() 667 struct thread_core_local *cl = (void *)thread_user_kdata_page; in select_vector_wa_spectre_bhb()
|
| H A D | entry_a32.S | 488 ldr r2, =thread_core_local 577 ldr r0, =thread_core_local 636 ldr r0, =thread_core_local 702 ldr r2, =thread_core_local 1062 ldr r1, =thread_core_local 1131 ldr r1, =thread_core_local
|
| H A D | entry_a64.S | 345 adr_l x2, thread_core_local 463 adr_l x0, thread_core_local 527 adr_l x2, thread_core_local 812 adr_l x1, thread_core_local
|
| H A D | boot.c | 921 size_t sz = sizeof(struct thread_core_local) * in init_primary()
|
| /optee_os/core/kernel/ |
| H A D | thread.c | 23 struct thread_core_local *thread_core_local __nex_bss; 28 static struct thread_core_local 30 struct thread_core_local *thread_core_local __nex_data = __thread_core_local; 37 struct thread_core_local *__thread_core_local_new __nex_bss; 148 if (thread_core_local[n].tmp_stack_va_end) { in thread_init_canaries() 149 va = thread_core_local[n].tmp_stack_va_end + in thread_init_canaries() 153 va = thread_core_local[n].abt_stack_va_end; in thread_init_canaries() 220 if (thread_core_local[n].tmp_stack_va_end) { in thread_check_canaries() 221 va = thread_core_local[n].tmp_stack_va_end + in thread_check_canaries() 227 va = thread_core_local[n].abt_stack_va_end; in thread_check_canaries() [all …]
|
| H A D | spin_lock_debug.c | 12 struct thread_core_local *l = thread_get_core_local(); in spinlock_count_incr() 20 struct thread_core_local *l = thread_get_core_local(); in spinlock_count_decr() 28 struct thread_core_local *l; in have_spinlock()
|
| /optee_os/core/arch/riscv/kernel/ |
| H A D | asm-defines.c | 24 DEFINE(THREAD_CORE_LOCAL_SIZE, sizeof(struct thread_core_local)); 26 offsetof(struct thread_core_local, hart_id)); 28 offsetof(struct thread_core_local, hart_index)); 30 offsetof(struct thread_core_local, tmp_stack_va_end)); 32 offsetof(struct thread_core_local, curr_thread)); 34 offsetof(struct thread_core_local, flags)); 36 offsetof(struct thread_core_local, abt_stack_va_end)); 37 DEFINE(THREAD_CORE_LOCAL_X0, offsetof(struct thread_core_local, x[0])); 38 DEFINE(THREAD_CORE_LOCAL_X1, offsetof(struct thread_core_local, x[1]));
|
| H A D | thread_arch.c | 233 struct thread_core_local *l = thread_get_core_local(); in __thread_alloc_and_run() 322 struct thread_core_local *l = thread_get_core_local(); in thread_get_saved_thread_sp() 333 return thread_core_local[hartidx].hart_id; in thread_get_hartid_by_hartindex() 340 struct thread_core_local *l = thread_get_core_local(); in thread_resume_from_rpc() 397 struct thread_core_local *l = thread_get_core_local(); in thread_state_free() 418 struct thread_core_local *l = thread_get_core_local(); in thread_state_suspend()
|
| H A D | entry.S | 64 la tp, thread_core_local 207 la t2, thread_core_local 267 la t0, thread_core_local 313 la a2, thread_core_local 396 LDR t1, thread_core_local
|
| H A D | boot.c | 138 size_t sz = sizeof(struct thread_core_local) * in init_primary()
|
| /optee_os/core/include/kernel/ |
| H A D | thread_private.h | 77 extern struct thread_core_local *thread_core_local; 80 extern struct thread_core_local *__thread_core_local_new;
|
| H A D | thread.h | 61 struct thread_core_local *thread_get_core_local(void);
|
| /optee_os/core/arch/arm/sm/ |
| H A D | pm.c | 34 struct thread_core_local *p = thread_get_core_local(); in sm_pm_cpu_suspend_save()
|
| /optee_os/core/arch/arm/plat-ti/ |
| H A D | a9_plat_init.S | 61 ldr r1, =thread_core_local
|
| /optee_os/core/arch/riscv/include/kernel/ |
| H A D | thread_arch.h | 34 struct thread_core_local { struct
|
| /optee_os/core/arch/arm/include/kernel/ |
| H A D | thread_arch.h | 42 struct thread_core_local { struct
|