arch: arm: aarch32: Fix when mode offset is defined
Commit a2cfb8431d
("arch: arm: Add code for swapping threads between
secure and non-secure") changed the mode variable in the _thread_arch to
be defined by ARM_STORE_EXC_RETURN or USERSPACE. The generated offset
define for mode was enabled by FPU_SHARING or USERSPACE. This broke
Cortex-R with FPU, but with ARM_STORE_EXC_RETURN disabled. Reconcile
the checks.
Signed-off-by: Bradley Bolen <bbolen@lexmark.com>
This commit is contained in:
parent
0f3e473f06
commit
fd2aab3861
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@
|
|||
GEN_OFFSET_SYM(_thread_arch_t, basepri);
|
||||
GEN_OFFSET_SYM(_thread_arch_t, swap_return_value);
|
||||
|
||||
#if defined(CONFIG_USERSPACE) || defined(CONFIG_FPU_SHARING)
|
||||
#if defined(CONFIG_ARM_STORE_EXC_RETURN) || defined(CONFIG_USERSPACE)
|
||||
GEN_OFFSET_SYM(_thread_arch_t, mode);
|
||||
#endif
|
||||
#if defined(CONFIG_ARM_STORE_EXC_RETURN)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue