[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
non-FP tasks
- Date: Tue, 12 Jun 2007 09:34:28 -0700
- From: strauman at slac.stanford.edu (Till Straumann)
- Subject: non-FP tasks
For a long time I have been patching newlib
so that it dynamically switches to vfiprintf
when executed by a non-FP task.
The patch also addresses setjmp/longjmp
(only saves/restores FP regs for FP tasks).
Finally, the patch also addresses altivec.
However: the patch addresses PPC only ATM.
HTH
-- Till
PS: originally created for newlib-1.13 but I
have used it on later versions, too.
Kate Feng wrote:
> rtems_bsdnet_newproc() generated tasks are non-FP. However,
>
> 1) The networkDaemon in cpukit/libnetworking/rtems calls
> 'sprintf' for arpint, which eventually will cause FP unavailable
> exception if network driver are built with -msoft-float.
> Suggestion ?
>
> 2) Network drivers use printk, rtems_panic, and printf,
> which are all currently compiled using the FP registers
> under all 4.6 and 4.7. How about having printk compiled
> with -msoft-float since it could be called from ISR ?
> Can this be implemented in 4.7.x ?
>
> Regards,
> Kate
>
>
>
> _______________________________________________
> rtems-users mailing list
> rtems-users at rtems.com
> http://rtems.rtems.org/mailman/listinfo/rtems-users
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: newlib-1.13.0-altivec.diff
Type: text/x-patch
Size: 15755 bytes
Desc: not available
Url : http://rtems.rtems.org/pipermail/rtems-users/attachments/20070612/404b0d3f/attachment.bin