* [U-Boot] floating point operation in powerpc
@ 2009-08-06 6:33 prathika
2009-08-06 9:09 ` Wolfgang Denk
0 siblings, 1 reply; 2+ messages in thread
From: prathika @ 2009-08-06 6:33 UTC (permalink / raw)
To: u-boot
hi all
i am porting u-boot on powerpc 440.
i am also running a simple hello world application on it and I want to
use floating point unit.
i have declared a floating point variable like this :
/float ftemp;
/ i am trying to print the floating point value like this:
/printf("ftemp=%f\n",ftemp);
/ i have included "float.h"
but still it doesnt print me the exact floating point value.
my output is like this:
/ftemp=%f
/ i have not edited MSR register. should i set the bit 18 for using the
FPU in PPC?
where am I going wrong in using floating point? is there any switch or
library that i should include while compiling the hello_world.c?
this might be seem very silly, but please help in sorting out this issue.
--
Regards,
Prathika R
^ permalink raw reply [flat|nested] 2+ messages in thread* [U-Boot] floating point operation in powerpc
2009-08-06 6:33 [U-Boot] floating point operation in powerpc prathika
@ 2009-08-06 9:09 ` Wolfgang Denk
0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Denk @ 2009-08-06 9:09 UTC (permalink / raw)
To: u-boot
Dear prathika,
In message <4A7A7946.6080007@deeopl.com> you wrote:
>
> i am porting u-boot on powerpc 440.
> i am also running a simple hello world application on it and I want to
> use floating point unit.
Boot an operating system, then.
U-Boot is just a boot loader, and we do not support any FP operations
in U-Boot.
> where am I going wrong in using floating point? is there any switch or
> library that i should include while compiling the hello_world.c?
Boot Linux, and run your application in Linux.
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
What's the sound a name makes when it's dropped?
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-08-06 9:09 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-06 6:33 [U-Boot] floating point operation in powerpc prathika
2009-08-06 9:09 ` Wolfgang Denk
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.