non-FP tasks
Till Straumann
strauman at slac.stanford.edu
Tue Jun 12 16:34:28 UTC 2007
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://lists.rtems.org/pipermail/users/attachments/20070612/404b0d3f/attachment-0001.bin>
More information about the users
mailing list