Home
Support

Knowledge Base

BSPs and drivers
Community resources
Product documentation
Questions?
Contact us

SSE usage with QNX
 
________________________________________________________________________

Applicable Environment
________________________________________________________________________
  • Topic: SSE usage with QNX
  • SDP: 6.5.0
  • Target: Any supported target
________________________________________________________________________

Recommendation
________________________________________________________________________


Q: I would like to know if it is possible/safe to use SSE instructions with QNX. I.e., does the kernel correctly save/restore SSE registers/state during context switches?

A: Yes, it saves/restores the context.

Q: And is there any API or structures/constants to check availability/level of SSE rather than examining processor features directly via inline assembler?

A:Check the CPU flags of in the SYSPAGE_ENTRY(cpuinfo)->flags for :
X86_CPU_MMX, X86_CPU_SIMD, X86_CPU_SSE2 . SSE3 is not enumerated and will required inline assembly to probe.

________________________________________________________________________
NOTE: This entry has been validated against the SDP version listed above. Use caution when considering this advice for any other SDP version. For supported releases, please reach out to QNX Technical Support if you have any questions/concerns.
________________________________________________________________________


Related Attachments
 None Found





Please contact us with your questions or concerns.