commit | 1e16feacda4c3814ded074da0bf775e8f27aa2c9 | [log] [tgz] |
---|---|---|
author | Daniel Leung <daniel.leung@intel.com> | Mon Jan 24 11:38:45 2022 -0800 |
committer | Anas Nashif <anas.nashif@intel.com> | Tue Jan 25 21:16:32 2022 -0500 |
tree | 853c969f486cadb252deb7dbbf799a755b8cacfc | |
parent | 35c1d3615f7fb71b20a8315281f511fdbd1a4cc9 [diff] |
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: Daniel Leung <daniel.leung@intel.com>