Scan the archives. I've given the prescription a number of times for extracting this function from the gcc library and linking it with your program.
Norm ----- Original Message ----- From: Pablo Alvarez <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, January 23, 2002 11:30 AM Subject: [rtl] Integer division of hrtime_t variables > 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). > > Does anybody know of a way to avoid using this function, or to make this > function available in the kernel, or am I stuck multiplying by 0.0000001? > > Thanks, > > Pablo Alvarez > > ------------------------------------------------------------------- > Pablo Alvarez, Ph.D. Phone: (617) 353-1423 > Software Engineer Fax: (617) 353-1414 > Dept. of Psychology email: [EMAIL PROTECTED] > Boston University > 64 Cummington Street > Boston, MA 02215, USA > ------------------------------------------------------------------- > > -- [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/ > -- [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/