[Click] kernel mode - 2.6.24.7

Ian Rose ianrose at eecs.harvard.edu
Mon Mar 15 14:56:16 EDT 2010


What do you mean by "any other file with floating point arithmetic"? 
Are you talking about click code specifically?  If so, I think you'll 
find that there is no kernel-mode floating point in click.  If you are 
seeing floating point code its probably inside a '#ifdef 
CLICK_USERLEVEL' block.

- Ian


Mythili wrote:
> But how is it that any other file with floating point arithmetic works fine
> and can be loaded as a kernel module? I am not sure if I get what you are
> saying.
> 
> Mythili
> 
> 
> On 15 March 2010 11:23, adam.greenhalgh at googlemail.com <
> a.greenhalgh at cs.ucl.ac.uk> wrote:
> 
>> I didn't think the kernel supported floating point arithmetic. I could be
>> wrong , but its difficult to look things up from a commuter train.
>>
>> Adam
>>
>> -original message-
>> Subject: [Click] kernel mode - 2.6.24.7
>> From: "Mythili" <msmythili at gmail.com>
>> Date: 15/03/2010 6:15 pm
>>
>> Hi
>>    I am running click on linux 2.6.24.7 (source from kernel.org). The
>> kernel has been patched successfully with the latest version of click. I am
>> able to run click in the kernel mode. I need to run some floating point
>> arithmetic in a new element. I see multiple errors when I run make install.
>> And of course insmod fails as there are undefined symbols in the .ko files
>> created by the make install command.
>>
>> WARNING: "__mulsf3" [/home/live/Desktop/click-1.8.0/linuxmodule/click.ko]
>> undefined!
>> WARNING: "__floatsisf"
>> [/home/live/Desktop/click-1.8.0/linuxmodule/click.ko]
>> undefined!
>> WARNING: "__subsf3" [/home/live/Desktop/click-1.8.0/linuxmodule/click.ko]
>> undefined!
>> WARNING: "__divsf3" [/home/live/Desktop/click-1.8.0/linuxmodule/click.ko]
>> undefined!
>>
>> I am able to run click in the usermode. I also tried using the same
>> arithmetic in a c file and loading it as a kernel module. There are no
>> errors.
>>
>> So my guess is that click needs to be configured with some specific
>> flags/options to fix this. I currently tried with no flags as
>> /usr/src/linux
>> points to the correct source directory. ( I am a little unsure about how
>> grid elements don't cause this error as floating point numbers are used
>> there). I would really appreciate any help on this.
>>
>> Regards
>> Mythili
>> _______________________________________________
>> click mailing list
>> click at amsterdam.lcs.mit.edu
>> https://amsterdam.lcs.mit.edu/mailman/listinfo/click
>>
>>
> _______________________________________________
> click mailing list
> click at amsterdam.lcs.mit.edu
> https://amsterdam.lcs.mit.edu/mailman/listinfo/click


More information about the click mailing list