<font style="font-family:arial,sans-serif;font-size:13px"><font face="georgia,serif"><div>Hello ,</div><div>I am developing a feature in a X86-64 machine running kernel 3.5.5. I am exporting this symbol to test FPU and kernel compiles fine if I call this symbol from my module it works great. But when I used this symbol from scheduler particularly <b>enqueue_fair()</b> (few times per second) in/kernel/sched/fair.c it behaves weirdly. During boot kernel hangs abruptly after few hundreds correct prints in this function after 1st print. </div>
<div><br></div><div>Am I missing any rule, because I looked it up on internet they says nothing else than this way to use fpu. Any help is appreciated. I tried 10-20 boots and each time it hangs.</div></font></font><font style="font-family:arial,sans-serif;font-size:13px"><font face="georgia,serif"><div>
<br></div><div><b>Code snippet for reference:</b></div><div> 1 /*test FPU*/</div><div> 2 #include <asm/i387.h></div><div> 3 #include <linux/time.h></div><div> 4 </div><div> 5 </div><div> 6 void my_symbol(void){</div>
<div> 7 unsigned long i = get_seconds();</div><div> 8 </div><div> 9 printk(KERN_DEBUG "i:%lu,",i);</div><div> 10 kernel_fpu_begin();</div><div> 11 float d = 3.123456*(i%3);</div><div>
12 i=(unsigned long)(d*1000000);</div><div> 13 kernel_fpu_end();</div><div> 14 printk(KERN_DEBUG "%lu\n",i);</div><div> 15 }</div><div> 16 EXPORT_SYMBOL_GPL(my_symbol);</div><div><br></div>
<div>
thanks</div><div><br></div></font></font><font color="#888888" style="font-family:arial,sans-serif;font-size:13px">Regards,<br>Digant Desai.</font><font><font face="georgia,serif"><br clear="all"></font></font>