| /optee_os/core/arch/arm/plat-k3/drivers/ |
| H A D | sec_proxy.c | 21 /* SEC PROXY RT THREAD STATUS */ 26 /* SEC PROXY SCFG THREAD CTRL */ 46 * struct k3_sec_proxy_thread - Description of a Secure Proxy Thread 47 * @id: Thread ID 48 * @data: Thread Data path region for target 49 * @scfg: Secure Config Region for Thread 50 * @rt: RealTime Region for Thread 60 * k3_sec_proxy_verify_thread() - Verify thread status before 62 * @dir: Direction of the thread 71 FMSG("Check for thread corruption"); in k3_sec_proxy_verify_thread() [all …]
|
| H A D | sec_proxy.h | 31 * k3_sec_proxy_send() - Send data over a Secure Proxy thread 37 * k3_sec_proxy_recv() - Receive data from a Secure Proxy thread
|
| /optee_os/core/kernel/ |
| H A D | mutex_lockdep.c | 9 #include <kernel/thread.h> 22 * One queue per thread, contains the mutexes the thread owns at any point in 39 short int thread = thread_get_id(); in mutex_lock_check() local 43 lockdep_lock_acquire(&graph, &owned[thread], (uintptr_t)m); in mutex_lock_check() 49 short int thread = thread_get_id(); in mutex_trylock_check() local 53 lockdep_lock_tryacquire(&graph, &owned[thread], (uintptr_t)m); in mutex_trylock_check() 59 short int thread = thread_get_id(); in mutex_unlock_check() local 63 lockdep_lock_release(&owned[thread], (uintptr_t)m); in mutex_unlock_check()
|
| H A D | wait_queue.c | 9 #include <kernel/thread.h> 31 DMSG("%s thread %d %p %s:%d", cmd_str, id, in do_notif() 34 DMSG("%s thread %d %p", cmd_str, id, sync_obj); in do_notif() 42 DMSG("%s thread %d res %#"PRIx32, cmd_str, id, res); in do_notif() 178 FMSG("promote thread %u %p %s:%d", in wq_promote_condvar() 181 FMSG("promote thread %u %p", in wq_promote_condvar()
|
| /optee_os/core/include/kernel/ |
| H A D | mutex_pm_aware.h | 23 * - When a thread requests a mutex held by a non-thread context; 24 * - When a non-thread context requests a mutex held by a thread; 25 * - When a non-thread context requests a mutex held by a non-thread context. 28 struct mutex mutex; /* access protection in thread context */
|
| H A D | thread.h | 67 * Initializes thread contexts. Called in thread_init_boot_thread() if 98 * Initializes a thread to be used during boot 103 * Clears the current thread id 109 * Returns current thread id. 114 * Returns current thread id, return -1 on failure. 118 /* Returns Thread Specific Data (TSD) pointer. */ 122 * Sets foreign interrupts status for current thread, must only be called 123 * from an active thread context. 131 * Restores the foreign interrupts status (in CPSR) for current thread, must 132 * only be called from an active thread context. [all …]
|
| H A D | refcount.h | 26 * // Some other thread may have initialized o by now so check that 39 * // by any other thread, check that the refcount value is still 0 40 * // to guard against the thread above already having reinitialized o
|
| H A D | lockdep.h | 18 * the same thread of execution. 40 /* Per-thread queue of currently owned locks (point to nodes in the graph) */ 73 * @owned represent the caller; there should be one instance per thread of 95 * @owned represent the caller; there should be one instance per thread of
|
| /optee_os/core/arch/arm/include/kernel/ |
| H A D | thread_private_arch.h | 12 #include <kernel/thread.h> 123 * Assembly function as the first function in a thread. Handles a stdcall, 136 * Resumes execution of currently active thread by restoring context and 140 * context of the current thread if THREAD_FLAGS_COPY_ARGS_ON_RETURN is set 141 * in the flags field in the thread context. 157 * Marks the current thread as suspended. And updated the flags 158 * for the thread context (see thread resume for use of flags). 159 * Returns thread index of the thread that was suspended. 164 * Marks the current thread as free. 168 /* Returns a pointer to the saved registers in current thread context. */ [all …]
|
| H A D | thread_arch.h | 104 uint32_t a3; /* Thread ID when returning from RPC */ 133 uint64_t a3; /* Thread ID when returning from RPC */ 370 * This function may only be called from an active thread context and may 442 * thread_get_saved_thread_sp() - Returns the saved sp of current thread 444 * When switching from the thread stack pointer the value is stored 445 * separately in the current thread context. This function returns this 495 * thread isn't idle this function returns false. 501 * enabled and this function returns true. If one thread isn't idle this
|
| /optee_os/core/arch/riscv/kernel/ |
| H A D | thread_arch.c | 24 #include <kernel/thread.h> 193 static void init_regs(struct thread_ctx *thread, uint32_t a0, uint32_t a1, in init_regs() argument 197 memset(&thread->regs, 0, sizeof(thread->regs)); in init_regs() 199 thread->regs.epc = (uintptr_t)pc; in init_regs() 202 thread->regs.status = xstatus_for_xret(true, PRV_S); in init_regs() 205 thread->regs.ie = THREAD_EXCP_NATIVE_INTR; in init_regs() 208 thread->regs.sp = thread->stack_va_end; in init_regs() 211 thread->regs.gp = read_gp(); in init_regs() 212 thread->regs.tp = read_tp(); in init_regs() 216 * arguments appear in a0-a7 when thread is started. in init_regs() [all …]
|
| H A D | boot.c | 17 #include <kernel/thread.h> 127 * Mask asynchronous exceptions before switch to the thread vector in init_primary() 128 * as the thread handler requires those to be masked while in init_primary() 129 * executing with the temporary stack. The thread subsystem also in init_primary() 272 * Mask asynchronous exceptions before switch to the thread vector in init_secondary_helper() 273 * as the thread handler requires those to be masked while in init_secondary_helper() 274 * executing with the temporary stack. The thread subsystem also in init_secondary_helper()
|
| H A D | thread_rv.S | 10 #include <kernel/thread.h> 67 /* Get thread context as sp */ 150 /* Get thread context as sp */ 290 /* Get thread context as sp */ 387 /* Get thread context as sp */ 417 /* Load and set kernel sp from thread context */ 641 * See description in thread.h 676 * Save the kernel stack pointer in the thread context 679 /* Get pointer to current thread context */ 769 * Mark current thread as suspended. [all …]
|
| H A D | thread_optee_abi_rv.S | 10 #include <kernel/thread.h> 58 * set thread state as free 98 /* Save thread state */ 126 mv a4, a0 /* thread index */
|
| /optee_os/core/arch/arm/kernel/ |
| H A D | thread.c | 25 #include <kernel/thread.h> 151 static void init_regs(struct thread_ctx *thread, uint32_t a0, uint32_t a1, in init_regs() argument 155 thread->regs.pc = (uint32_t)pc; in init_regs() 161 thread->regs.cpsr = read_cpsr() & ARM32_CPSR_E; in init_regs() 162 thread->regs.cpsr |= CPSR_MODE_SVC | CPSR_A | in init_regs() 165 if (thread->regs.pc & 1) in init_regs() 166 thread->regs.cpsr |= CPSR_T; in init_regs() 168 thread->regs.svc_sp = thread->stack_va_end; in init_regs() 172 * arguments appear in r0-r7 when thread is started. in init_regs() 174 thread->regs.r0 = a0; in init_regs() [all …]
|
| H A D | thread_spmc_a64.S | 14 #include <kernel/thread.h> 108 /* Store the parameter registers x0-x17 on the thread stack */ 120 * Copy the result registers x0-x17 from the thread stack into the 176 mov w7, w0 /* Supply thread index */ 199 * The current thread as indicated by @thread_index has just been 200 * suspended. The job here is just to inform normal world the thread id to 205 * driver in Linux so it can schedule task to the thread. 210 * in threads[w0].flags. This is only set for the thread which handles SPs.
|
| H A D | sub.mk | 21 srcs-y += thread.c 67 # asm-defines.c includes <kernel/thread.h> 68 # <kernel/thread.h> includes <asm.h> 77 # We would not like to profile thread.c file as it provide common APIs 80 cflags-remove-thread.c-y += -pg
|
| H A D | thread_optee_smc_a64.S | 11 #include <kernel/thread.h> 214 mov x4, x0 /* Supply thread index */ 242 * The current thread as indicated by @thread_index has just been 243 * suspended. The job here is just to inform normal world the thread id to
|
| H A D | thread_optee_smc_a32.S | 11 #include <kernel/thread.h> 216 mov r4, r0 /* Supply thread index */ 242 * The current thread as indicated by @thread_index has just been 243 * suspended. The job here is just to inform normal world the thread id to
|
| /optee_os/lib/libutee/ |
| H A D | tcb.c | 6 * Support for Thread-Local Storage (TLS) ABIs for ARMv7/Aarch32 and Aarch64. 11 * "Posix thread" Linux runtime, which OP-TEE has been using for quite some time 31 * [1] "ELF Handling For Thread-Local Storage" 43 /* DTV - Dynamic Thread Vector 59 /* Thread Control Block */ 156 * Aarch64 ABI requirement: the thread pointer shall point to the in __utee_tcb_init() 157 * thread's TCB. ARMv7 and Aarch32 access the TCB via _tls_get_addr(). in __utee_tcb_init() 184 * dlpi_tls_data is thread-specific so if we were to support in dl_iterate_phdr() 186 * thread. Could be a pre-allocated area, or could be allocated on the in dl_iterate_phdr() 188 * add thread support. Further optimization can always come later. in dl_iterate_phdr()
|
| /optee_os/lib/libmbedtls/mbedtls/include/mbedtls/ |
| H A D | threading.h | 49 * function must be called once in the main thread before any 52 * thread after all other Mbed TLS functions. 105 * A mutex used to make the PSA subsystem thread safe. 117 * A mutex used to make the non-rng PSA global_data struct members thread safe. 124 * A mutex used to make the PSA global_data rng data thread safe.
|
| H A D | hmac_drbg.h | 156 * reseeding, are not thread-safe. 205 * reseeding, are not thread-safe. 271 * \note This function is not thread-safe. It is not safe 272 * to call this function if another thread might be 292 * \note This function is not thread-safe. It is not safe 293 * to call this function if another thread might be 322 * \note This function is not thread-safe. It is not safe 323 * to call this function if another thread might be 362 * reseeding, are not thread-safe.
|
| H A D | entropy.h | 146 * (Thread-safe if MBEDTLS_THREADING_C is enabled) 167 * (Thread-safe if MBEDTLS_THREADING_C is enabled) 178 * (Thread-safe if MBEDTLS_THREADING_C is enabled) 190 * (Thread-safe if MBEDTLS_THREADING_C is enabled)
|
| /optee_os/core/lib/libefi/include/efi/ |
| H A D | mpinfo.h | 51 uint32_t thread; member 63 uint32_t thread; member 74 * logical thread number within core. 110 * the physical core number within package, and logical thread number
|
| /optee_os/core/include/tee/ |
| H A D | entry_std.h | 10 #include <kernel/thread.h> 18 * These functions are called in a normal thread context.
|