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/02 15:43:23 UTC

[incubator-nuttx] branch master 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 master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git


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

commit a5b006a8918008668c33f3a3bd757bd35b63f5b0
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