Skip to content
Commit 69781604 authored by Carlo Caione's avatar Carlo Caione Committed by Anas Nashif
Browse files

aarch64: userspace: Introduce arch_is_user_context



The arch_is_user_context() function is relying on the content of the
tpidrro_el0 register to determine whether we are in user context or not.

This register is set to '1' when in EL1 and set back to '0' when user
threads are running in userspace.

Signed-off-by: default avatarCarlo Caione <ccaione@baylibre.com>
parent 6cf0d000
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment