All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai] ARM LS1021A SMP Floating point Interrupt Service Routine
@ 2016-03-16  3:41 Henry Bausley
  2016-03-16  4:04 ` Gilles Chanteperdrix
  0 siblings, 1 reply; 2+ messages in thread
From: Henry Bausley @ 2016-03-16  3:41 UTC (permalink / raw)
  To: xenomai

How does one properly permit floating point operations in an ISR in a
kernel driver running on an ARM CPU.  Our ISR is on cpu 0 and I thought
that the code below would work.  However sometimes the userspace
application using the floating point unit will get a segmentation fault.
The kernel driver running floating point does not have a problem.  I am
sure I am missing something here since I can use floating point in
xenomai kernel threads without a problem.

int FloatingPointISR()
{
  rthal_vfp_save((union vfp_state*)x, rthal_enable_fpu());

   // A bunch of floating point stuff

  rthal_vfp_load((union vfp_state*)x, 0);
}




Outbound scan for Spam or Virus by Barracuda at Delta Tau



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

end of thread, other threads:[~2016-03-16  4:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-16  3:41 [Xenomai] ARM LS1021A SMP Floating point Interrupt Service Routine Henry Bausley
2016-03-16  4:04 ` Gilles Chanteperdrix

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.