commit | f1612236377df618d0019cae4b278900def684b6 | [log] [tgz] |
---|---|---|
author | Carlo Caione <ccaione@baylibre.com> | Mon Oct 12 12:10:45 2020 +0200 |
committer | Anas Nashif <anas.nashif@intel.com> | Wed Oct 21 08:00:35 2020 -0400 |
tree | e731afaf82b47ca430da78e2ebc699112944408c | |
parent | 2e0b86a01b81109c9dd5f5585ee599fe46b9f753 [diff] |
userspace: Fix thread index type in z_thread_perms_all_clear() The type for the thread index returned by thread_index_get() must be casted to int when comparing with (-1). Directly using uintptr_t is breaking the ARMv8 implementation where where the check (index != -1) is verified also when no thread index is returned. Signed-off-by: Carlo Caione <ccaione@baylibre.com>