You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2022/03/08 16:44:24 UTC
[GitHub] [incubator-nuttx] xiaoxiang781216 commented on a change in pull request #5695: arch/risc-v: Save/Load float register in setjmp
xiaoxiang781216 commented on a change in pull request #5695:
URL: https://github.com/apache/incubator-nuttx/pull/5695#discussion_r821858328
##########
File path: arch/risc-v/include/setjmp.h
##########
@@ -25,13 +25,24 @@
* Included Files
****************************************************************************/
+#include <nuttx/config.h>
+#include <nuttx/compiler.h>
+
/****************************************************************************
* Public Types
****************************************************************************/
struct setjmp_buf_s
{
long regs[14];
+
+ /* Float callee register : fs0-fs11 */
+
+#ifdef CONFIG_ARCH_DPFPU
+ double fregs[12];
+#elif defined(CONFIG_ARCH_FPU)
Review comment:
> How do we handle `CONFIG_ARCH_QPFPU` case?
Yes, since all other place handle CONFIG_ARCH_QPFPU correctly.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org