AT91RM9200 Real-time kernel canot use float
anybody think about it ? I want to use float in real time kernel,my board is AT91RM9200
06121777
2008-03-15
Quoted 4 lines · On Sat, Mar 15, 2008 at 1:21 AM, 06121777 <[email protected]> wrote:
anybody think about it ? I want to use float in real time kernel,my board is AT91RM9200
Using soft-float in kernel-space is usually considered a bad idea. But if you still want to do it, read on.
First, you have to realize that an AT91RM9200 has no FPU, so you have to use soft float (which means compiling with -msoft-float), which is slow. Since you are talking about kernel space, you do not have to change the compilation flags, since the kernel is already compiled with -msoft-float. At the end of the compilation you will get undefined symbols, to resolve these symbols, you may extract them from your compiler libgcc. But be careful to only use symbols that do not use user-space services (for instance, the function called in case of division by 0, called _div0 or something like this, uses abort, so you should implement your own _div0).
Signature · 1 line
Gilles Chanteperdrix