RE: [rtl] Integer division of hrtime_t variables

2002-01-24 Thread Thomas M. Galla
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

Re: [rtl] Integer division of hrtime_t variables

2002-01-24 Thread cort
I'd agree that not using 64-bit arithmetic is the way to go but if you want to use it then you can use the same trick we do for the scheduler. If you look at the Makefile in schedulers/ you'll see something like this. LIBGCC := $(shell $(CC) -print-libgcc-file-name) Ignore the MIPS version of

Re: [rtl] Integer division of hrtime_t variables

2002-01-23 Thread Norm Dresner
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

Re: [rtl] Integer division of hrtime_t variables

2002-01-23 Thread Chris Hawks
. 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

Re: [rtl] Integer division of hrtime_t variables

2002-01-23 Thread Tony Denault
/-\ | Tony Denault| Internet: [EMAIL PROTECTED] | | NASA IRTF, Institute of Astronomy | Phone: (808) 974-4206 | | 1175 Manono St., Bldg 393 | Fax:

[rtl] Integer division of hrtime_t variables

2002-01-23 Thread Pablo Alvarez
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