Home
last modified time | relevance | path

Searched refs:is_from_user (Results 1 – 2 of 2) sorted by relevance

/optee_os/core/arch/riscv/kernel/
H A Dthread_arch.c284 static bool is_from_user(unsigned long status) in is_from_user() function
317 return is_from_user((uint32_t)regs->status); in is_user_mode()
428 if (is_from_user(status)) { in thread_state_suspend()
/optee_os/core/arch/arm/kernel/
H A Dthread.c313 static bool is_from_user(uint32_t cpsr) in is_from_user() function
320 static bool is_from_user(uint32_t cpsr) in is_from_user() function
359 return is_from_user((uint32_t)regs->cpsr); in is_user_mode()
483 vaddr_t sp = is_from_user(cpsr) ? thr->kern_sp : thr->regs.sp; in release_unused_kernel_stack()
513 if (is_from_user(cpsr)) { in thread_state_suspend()