From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jonathan Larmour To: Sergei Organov Cc: ecos-discuss@sourceware.cygnus.com Subject: Re: [ECOS] Re: Ecos Port to PPC509/PPC555 Date: Fri, 24 Sep 1999 08:52:00 -0000 Message-id: <37EB9DEA.5AD6EC35@cygnus.co.uk> References: <37E80554.7D56118D@danlawinc.com> <199909231448.PAA13861@sheesh.cygnus.co.uk> <87puz8v8sh.fsf@osv.javad.ru> X-SW-Source: 1999-09/msg00030.html Sergei Organov wrote: > > I don't want > to have FP overhead for every task in my system. Actually only few > tasks should have floating point context, and the rest of tasks never > use floating point. Therefore it is required to somehow specify if > given task has FP context or not. This requires change(s) to the > kernel API. Optimizing further, if only some tasks have FP context, > then FP context switch is actually required only when control is given > to FP task. Such lazy FP context switch requires some support from > kernel and apparently some changes in HAL interface. Yep. This is a sensible optimization, but yes it would require HAL changes. The clever thing is implementing an interface that won't affect other HALs - some MCUs will never have hard floating-point so we shouldn't be complicating their implementations unnecessarily. It also has to be configurable because some interrupt/exception handlers may want to use FP of course. > Overall, I'd prefer to have full FP support in eCos to be able to use > all possible tricks to get maximum performance from hardware. That's > why I asked about FP support in eCos - I meant general support, and > not FP context save/restore implementation for some particular > architecture. Sure, I can do all this myself, but then another > implementation will come from Cygnus. So the question remains. Not if you contribute it back! If you want to propose something more concrete on this list, everyone can discuss it. Cygnus aren't working on it, but we will do what we can to help you do it. If you submit acceptable patches to the list, we will certainly incorporate it in future releases. eCos really is open source :-). Jifl -- Cygnus Solutions, 35 Cambridge Place, Cambridge, UK. Tel: +44 (1223) 728762 "I used to have an open mind but || Get yer free open source RTOS's here... my brains kept falling out." || http://sourceware.cygnus.com/ecos Help fight spam! http://spam.abuse.net/ These opinions are all my own fault