All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] cobalt/arch/arm: fptest: Add missing SIMD register clobbering
@ 2021-10-06 15:19 Jan Kiszka
  2021-10-06 21:01 ` Bezdeka, Florian
  0 siblings, 1 reply; 4+ messages in thread
From: Jan Kiszka @ 2021-10-06 15:19 UTC (permalink / raw)
  To: Xenomai

From: Jan Kiszka <jan.kiszka@siemens.com>

This caused troubles with modern gcc that starts to use those regs for
other purposes. Seen with gcc-10 on Debian 11 e.g.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---
 kernel/cobalt/arch/arm/include/asm/xenomai/uapi/fptest.h | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/kernel/cobalt/arch/arm/include/asm/xenomai/uapi/fptest.h b/kernel/cobalt/arch/arm/include/asm/xenomai/uapi/fptest.h
index b81d109933..d5c2c7515b 100644
--- a/kernel/cobalt/arch/arm/include/asm/xenomai/uapi/fptest.h
+++ b/kernel/cobalt/arch/arm/include/asm/xenomai/uapi/fptest.h
@@ -32,7 +32,12 @@ static inline void fp_regs_set(int features, unsigned int val)
 		/* vldm %0!, {d0-d15},
 		   AKA fldmiax %0!, {d0-d15} */
 		__asm__ __volatile__("ldc p11, cr0, [%0],#32*4":
-				     "=r"(i): "0"(&e[0]): "memory");
+				     "=r"(i)
+				     : "0"(&e[0])
+				     : "d0", "d1", "d2", "d3", "d4", "d5",
+				       "d6", "d7", "d8", "d9", "d10", "d11",
+				       "d12", "d13", "d14", "d15",
+				       "memory");
 	}
 }
 
-- 
2.31.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-10-08  6:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-06 15:19 [PATCH] cobalt/arch/arm: fptest: Add missing SIMD register clobbering Jan Kiszka
2021-10-06 21:01 ` Bezdeka, Florian
2021-10-07  7:58   ` Jan Kiszka
2021-10-08  6:46     ` Bezdeka, Florian

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.