Thread (33 messages) 33 messages, 6 authors, 2023-12-14

Re: [RFC PATCH 09/12] riscv: Add support for kernel-mode FPU

From: Christoph Hellwig <hch@infradead.org>
Date: 2023-12-11 16:11:29
Also in: amd-gfx, linux-arch, linux-arm-kernel, linux-riscv, lkml, loongarch

+#ifdef __riscv_f
+
+#define kernel_fpu_begin() \
+	static_assert(false, "floating-point code must use a separate translation unit")
+#define kernel_fpu_end() kernel_fpu_begin()
+
+#else
+
+void kernel_fpu_begin(void);
+void kernel_fpu_end(void);
+
+#endif
I'll assume this is related to trick that places code in a separate
translation unit, but I fail to understand it.  Can you add a comment
explaining it?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help