You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2022/09/09 11:09:30 UTC

[incubator-nuttx] branch releases/11.0 updated: xtensa: Avoid including handlers when no coprocessor is available

This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch releases/11.0
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git


The following commit(s) were added to refs/heads/releases/11.0 by this push:
     new 4e739e5fff xtensa: Avoid including handlers when no coprocessor is available
4e739e5fff is described below

commit 4e739e5fffee8b8bb9665f2f68fa9efb859ed0c2
Author: Gustavo Henrique Nihei <gu...@espressif.com>
AuthorDate: Fri Sep 2 09:10:52 2022 -0300

    xtensa: Avoid including handlers when no coprocessor is available
    
    Signed-off-by: Gustavo Henrique Nihei <gu...@espressif.com>
---
 arch/xtensa/src/common/xtensa_context.S | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/arch/xtensa/src/common/xtensa_context.S b/arch/xtensa/src/common/xtensa_context.S
index 287a457dca..3a12d61420 100644
--- a/arch/xtensa/src/common/xtensa_context.S
+++ b/arch/xtensa/src/common/xtensa_context.S
@@ -69,7 +69,10 @@
 #include "chip.h"
 #include "syscall.h"
 #include "xtensa_asm_utils.h"
-#include "xtensa_coproc.S"
+
+#if XCHAL_CP_NUM > 0
+#  include "xtensa_coproc.S"
+#endif
 
 /****************************************************************************
  * Public Functions