Hi --
--- In "Oguz Dilmac" <> wrote:
>
> Hi all,
>
> I'm trying to pass some data from my pc to ts7300 via Ethernet.
> It seems floating point formats of EP9302 and PC are different from
> each other.
>
> In my program, I have a struct with both floating point and integer
> variables. I simply send this data to ethernet from PC. On the arm
> side, a user program gets the data from socket and put it to a FIFO to
> pass to a kernel module. Then I print them with rt_printk.
Floating Point math is not allowed to be used in the kernel or
modules, so probably there is no code to format floats. rt_printk
must be part of Realtime linux?
>
> When I dmesg, Integer parts are OK. But float parts are garbage.
>
Do the floats print OK if you print them in your userspace program?
> I also tried to define three float variables in the module. Add them
> to each other and print their values. They are OK too. No problem so
> far with FPU or GCC or rt_printk.
Why do you want to do this in the kernel? It can be done from
userspace (man 3 syslog ...)
>
> How can I convert from PC float format to ARM float format?
> (A link which describes these formats also would be great :) )
>
> Or am I missing some obvious point?
>
> Best regards,
> Oguz.
>
Regards, ........... Charlie
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|