Skip to contentSkip to conversation

How to enable floating-point operations in XNThread

DISCUSSION Suntao 2 participants 2 messages Aug 2, 2025 – Aug 3, 2025

lore
Share & tools
lore

Suntao

author
#0 lore raw

dear all,I understand that when developing Linux kernel modules on ARM platforms, if floating-point operations are involved, it's necessary to call kernel_neon_begin()/kernel_neon_end(). Additionally, when creating an xnthread, the XNFPU flag needs to be set. However, I'm unclear about how to perform floating-point operations specifically within real-time threads。please help me, thanks.

#1 lore raw
Quoted 3 lines · Suntao

dear all,I understand that when developing Linux kernel modules on ARM platforms, if floating-point operations are involved, it's necessary to call kernel_neon_begin()/kernel_neon_end(). Additionally, when creating an xnthread, the XNFPU flag needs to be set. However, I'm unclear about how to perform floating-point operations specifically within real-time threads。please help me, thanks.

Please see [1] for the topic of in-kernel FPU support.

Jan

[1] https://lore.kernel.org/xenomai/[email protected]/

Signature · 2 lines
Siemens AG, Foundational Technologies
Linux Expert Center