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
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
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
. 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
/-\
| Tony Denault| Internet: [EMAIL PROTECTED] |
| NASA IRTF, Institute of Astronomy | Phone: (808) 974-4206 |
| 1175 Manono St., Bldg 393 | Fax:
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