mirror of
https://github.com/apache/nuttx.git
synced 2026-08-10 23:15:15 +00:00
Fix a compile error introduced in last commit
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5743 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
parent
e9040a2f9d
commit
dd6cc9caee
1 changed files with 3 additions and 0 deletions
|
|
@ -126,6 +126,7 @@ void up_initial_state(struct tcb_s *tcb)
|
|||
#endif
|
||||
#endif /* CONFIG_PIC */
|
||||
|
||||
#if defined(CONFIG_ARMV7M_CMNVECTOR) || defined(CONFIG_NUTTX_KERNEL)
|
||||
/* All tasks start via a stub function in kernel space. So all
|
||||
* tasks must start in privileged thread mode. If CONFIG_NUTTX_KERNEL
|
||||
* is defined, then that stub function will switch to unprivileged
|
||||
|
|
@ -134,6 +135,8 @@ void up_initial_state(struct tcb_s *tcb)
|
|||
|
||||
xcp->regs[REG_EXC_RETURN] = EXC_RETURN_PRIVTHR;
|
||||
|
||||
#endif /* CONFIG_ARMV7M_CMNVECTOR || CONFIG_NUTTX_KERNEL */
|
||||
|
||||
#if defined(CONFIG_ARMV7M_CMNVECTOR) && defined(CONFIG_ARCH_FPU)
|
||||
|
||||
xcp->regs[REG_FPSCR] = 0; // XXX initial FPSCR should be configurable
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue