---On Wed, 23 Jan 2002 11:30:02 -0500,  Pablo Alvarez said

> Hi all,
> 
> When I try to do an integer division of an hrtime_t variable within the 
> kernel, I get the following error upon inserting the module:
> 
> my_module.o: unresolved symbol __divdi3
> make: *** [test] Error 1
> 
> As best I can tell, __divdi3 is called by the compiler to do that division, 
> and is not available within the kernel (actually, it is available from the 
> NVdriver module for my nvidia graphics card, but that leads to other 
> problems).

    I needed to do a 'short divide' (long long by long) in a module. The
simplest way (for me) was to include /src/linux-2.2.13/arch/i386/math-emu/div_small.S
in my module. It is part of the fpu emulation code.

--re: [rtl] Integer division of hrtime_t variables
                                Chris

Christopher R. Hawks Software Engineer
Syscon Plantstar a Division of Syscon International
-------------------------------------------------------------------------
Any research done on how to efficiently use computers has been long lost
in the mad rush to upgrade systems to do things that aren't needed by
people who don't understand what they are really supposed to do with them.
    -- Graham Reed, in a.s.r.




-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
--
For more information on Real-Time Linux see:
http://www.rtlinux.org/

Reply via email to