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:10:37 UTC

[incubator-nuttx] branch releases/11.0 updated (062a6bc9e4 -> 871803b4b8)

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

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


    from 062a6bc9e4 boards: lm3s6965-ek: Fix to load ELF applications for qemu-protected
     new ba885eb216 xtensa: Fix comparison result for up_fpucmp function
     new 871803b4b8 arch: Improve documentation for up_fpucmp function

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 arch/arm/src/armv7-a/arm_fpucmp.c      |  9 ++++++++-
 arch/arm/src/armv7-m/arm_fpucmp.c      |  9 ++++++++-
 arch/arm/src/armv7-r/arm_fpucmp.c      |  9 ++++++++-
 arch/arm/src/armv8-m/arm_fpucmp.c      |  9 ++++++++-
 arch/arm64/src/common/arm64_fpu.c      |  9 ++++++++-
 arch/risc-v/src/common/riscv_fpucmp.c  |  9 ++++++++-
 arch/xtensa/src/common/xtensa_fpucmp.c | 11 +++++++++--
 include/nuttx/arch.h                   |  9 ++++++++-
 8 files changed, 65 insertions(+), 9 deletions(-)


[incubator-nuttx] 02/02: arch: Improve documentation for up_fpucmp function

Posted by xi...@apache.org.
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

commit 871803b4b876ac844b6f470ce6d3356829ccdbc4
Author: Gustavo Henrique Nihei <gu...@espressif.com>
AuthorDate: Thu Aug 25 15:36:04 2022 -0300

    arch: Improve documentation for up_fpucmp function
    
    Signed-off-by: Gustavo Henrique Nihei <gu...@espressif.com>
---
 arch/arm/src/armv7-a/arm_fpucmp.c      | 9 ++++++++-
 arch/arm/src/armv7-m/arm_fpucmp.c      | 9 ++++++++-
 arch/arm/src/armv7-r/arm_fpucmp.c      | 9 ++++++++-
 arch/arm/src/armv8-m/arm_fpucmp.c      | 9 ++++++++-
 arch/arm64/src/common/arm64_fpu.c      | 9 ++++++++-
 arch/risc-v/src/common/riscv_fpucmp.c  | 9 ++++++++-
 arch/xtensa/src/common/xtensa_fpucmp.c | 9 ++++++++-
 include/nuttx/arch.h                   | 9 ++++++++-
 8 files changed, 64 insertions(+), 8 deletions(-)

diff --git a/arch/arm/src/armv7-a/arm_fpucmp.c b/arch/arm/src/armv7-a/arm_fpucmp.c
index 6bf2dbca3f..00ee4ccafe 100644
--- a/arch/arm/src/armv7-a/arm_fpucmp.c
+++ b/arch/arm/src/armv7-a/arm_fpucmp.c
@@ -44,7 +44,14 @@
  * Name: up_fpucmp
  *
  * Description:
- *   compare FPU areas from thread context
+ *   Compare FPU areas from thread context.
+ *
+ * Input Parameters:
+ *   saveregs1 - Pointer to the saved FPU registers.
+ *   saveregs2 - Pointer to the saved FPU registers.
+ *
+ * Returned Value:
+ *   True if FPU areas compare equal, False otherwise.
  *
  ****************************************************************************/
 
diff --git a/arch/arm/src/armv7-m/arm_fpucmp.c b/arch/arm/src/armv7-m/arm_fpucmp.c
index 5ddc18e89b..dfed405645 100644
--- a/arch/arm/src/armv7-m/arm_fpucmp.c
+++ b/arch/arm/src/armv7-m/arm_fpucmp.c
@@ -44,7 +44,14 @@
  * Name: up_fpucmp
  *
  * Description:
- *   compare FPU areas from thread context
+ *   Compare FPU areas from thread context.
+ *
+ * Input Parameters:
+ *   saveregs1 - Pointer to the saved FPU registers.
+ *   saveregs2 - Pointer to the saved FPU registers.
+ *
+ * Returned Value:
+ *   True if FPU areas compare equal, False otherwise.
  *
  ****************************************************************************/
 
diff --git a/arch/arm/src/armv7-r/arm_fpucmp.c b/arch/arm/src/armv7-r/arm_fpucmp.c
index e37ee256da..bcc6ecb203 100644
--- a/arch/arm/src/armv7-r/arm_fpucmp.c
+++ b/arch/arm/src/armv7-r/arm_fpucmp.c
@@ -44,7 +44,14 @@
  * Name: up_fpucmp
  *
  * Description:
- *   compare FPU areas from thread context
+ *   Compare FPU areas from thread context.
+ *
+ * Input Parameters:
+ *   saveregs1 - Pointer to the saved FPU registers.
+ *   saveregs2 - Pointer to the saved FPU registers.
+ *
+ * Returned Value:
+ *   True if FPU areas compare equal, False otherwise.
  *
  ****************************************************************************/
 
diff --git a/arch/arm/src/armv8-m/arm_fpucmp.c b/arch/arm/src/armv8-m/arm_fpucmp.c
index 08b2da7f94..4c5e3bb2d3 100644
--- a/arch/arm/src/armv8-m/arm_fpucmp.c
+++ b/arch/arm/src/armv8-m/arm_fpucmp.c
@@ -44,7 +44,14 @@
  * Name: up_fpucmp
  *
  * Description:
- *   compare FPU areas from thread context
+ *   Compare FPU areas from thread context.
+ *
+ * Input Parameters:
+ *   saveregs1 - Pointer to the saved FPU registers.
+ *   saveregs2 - Pointer to the saved FPU registers.
+ *
+ * Returned Value:
+ *   True if FPU areas compare equal, False otherwise.
  *
  ****************************************************************************/
 
diff --git a/arch/arm64/src/common/arm64_fpu.c b/arch/arm64/src/common/arm64_fpu.c
index 1516268359..9e6a43f5a1 100644
--- a/arch/arm64/src/common/arm64_fpu.c
+++ b/arch/arm64/src/common/arm64_fpu.c
@@ -229,7 +229,14 @@ void arm64_fpu_disable(void)
  * Name: up_fpucmp
  *
  * Description:
- *   compare FPU areas from thread context
+ *   Compare FPU areas from thread context.
+ *
+ * Input Parameters:
+ *   saveregs1 - Pointer to the saved FPU registers.
+ *   saveregs2 - Pointer to the saved FPU registers.
+ *
+ * Returned Value:
+ *   True if FPU areas compare equal, False otherwise.
  *
  ***************************************************************************/
 
diff --git a/arch/risc-v/src/common/riscv_fpucmp.c b/arch/risc-v/src/common/riscv_fpucmp.c
index d37faefe91..f0c209216b 100644
--- a/arch/risc-v/src/common/riscv_fpucmp.c
+++ b/arch/risc-v/src/common/riscv_fpucmp.c
@@ -44,7 +44,14 @@
  * Name: up_fpucmp
  *
  * Description:
- *   compare FPU areas from thread context
+ *   Compare FPU areas from thread context.
+ *
+ * Input Parameters:
+ *   saveregs1 - Pointer to the saved FPU registers.
+ *   saveregs2 - Pointer to the saved FPU registers.
+ *
+ * Returned Value:
+ *   True if FPU areas compare equal, False otherwise.
  *
  ****************************************************************************/
 
diff --git a/arch/xtensa/src/common/xtensa_fpucmp.c b/arch/xtensa/src/common/xtensa_fpucmp.c
index e466917991..c4aaa09b22 100644
--- a/arch/xtensa/src/common/xtensa_fpucmp.c
+++ b/arch/xtensa/src/common/xtensa_fpucmp.c
@@ -44,7 +44,14 @@
  * Name: up_fpucmp
  *
  * Description:
- *   compare FPU areas from thread context
+ *   Compare FPU areas from thread context.
+ *
+ * Input Parameters:
+ *   saveregs1 - Pointer to the saved FPU registers.
+ *   saveregs2 - Pointer to the saved FPU registers.
+ *
+ * Returned Value:
+ *   True if FPU areas compare equal, False otherwise.
  *
  ****************************************************************************/
 
diff --git a/include/nuttx/arch.h b/include/nuttx/arch.h
index 9c383de8b6..fa5fbc2c34 100644
--- a/include/nuttx/arch.h
+++ b/include/nuttx/arch.h
@@ -2618,7 +2618,14 @@ int up_saveusercontext(FAR void *saveregs);
  * Name: up_fpucmp
  *
  * Description:
- *   compare FPU areas from thread context
+ *   Compare FPU areas from thread context.
+ *
+ * Input Parameters:
+ *   saveregs1 - Pointer to the saved FPU registers.
+ *   saveregs2 - Pointer to the saved FPU registers.
+ *
+ * Returned Value:
+ *   True if FPU areas compare equal, False otherwise.
  *
  ****************************************************************************/
 


[incubator-nuttx] 01/02: xtensa: Fix comparison result for up_fpucmp function

Posted by xi...@apache.org.
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

commit ba885eb2167891b7f2b4983553954678967f3998
Author: Gustavo Henrique Nihei <gu...@espressif.com>
AuthorDate: Thu Aug 25 15:33:42 2022 -0300

    xtensa: Fix comparison result for up_fpucmp function
    
    Signed-off-by: Gustavo Henrique Nihei <gu...@espressif.com>
---
 arch/xtensa/src/common/xtensa_fpucmp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/xtensa/src/common/xtensa_fpucmp.c b/arch/xtensa/src/common/xtensa_fpucmp.c
index cafd93c3c0..e466917991 100644
--- a/arch/xtensa/src/common/xtensa_fpucmp.c
+++ b/arch/xtensa/src/common/xtensa_fpucmp.c
@@ -54,6 +54,6 @@ bool up_fpucmp(const void *saveregs1, const void *saveregs2)
   const uint32_t *regs2 = saveregs2;
 
   return memcmp(&regs1[XCPTCONTEXT_REGS], &regs2[XCPTCONTEXT_REGS],
-                XTENSA_CP_SA_SIZE);
+                XTENSA_CP_SA_SIZE) == 0;
 }
 #endif /* CONFIG_ARCH_FPU */