This is an automated email from the ASF dual-hosted git repository.
xiaoxiang781216 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git
The following commit(s) were added to refs/heads/master by this push:
new f8bd442c2 ostest/fpu: refresh saved FPU context after comparison
f8bd442c2 is described below
commit f8bd442c23ed5cc9711dd95a6f1d5fdc9830b9fb
Author: zhangyu117 <[email protected]>
AuthorDate: Mon Mar 30 16:57:16 2026 +0800
ostest/fpu: refresh saved FPU context after comparison
Save fpu->save1 again after the first up_fpucmp() check, because the
check itself may change the registers that are compared against the
context saved after the sleep.
Signed-off-by: zhangyu117 <[email protected]>
---
testing/ostest/fpu.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/testing/ostest/fpu.c b/testing/ostest/fpu.c
index 841d458c7..f643e57dc 100644
--- a/testing/ostest/fpu.c
+++ b/testing/ostest/fpu.c
@@ -256,6 +256,8 @@ static int fpu_task(int argc, char *argv[])
return EXIT_FAILURE;
}
+ up_saveusercontext(fpu->save1);
+
/* Now unlock and sleep for a while -- this should result in some
* context switches
*/