Skip to content
Commit 1e16feac authored by Daniel Leung's avatar Daniel Leung Committed by Anas Nashif
Browse files

tests: semaphore: fix empty loop error for XCC



When building with XCC, k_therad_access_grant() expands to
a loop but does nothing if no building for userspace. XCC
does not like this and emits error:

  main.s: Assembler messages:
  main.s:4563: Error: invalid empty loop

So add #ifdef to only enable the loop if userspace is enabled.

Signed-off-by: default avatarDaniel Leung <daniel.leung@intel.com>
parent 35c1d361
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment