> I attach a chunk of code that can be used to test any
> kernel time implementation. It is truly horrible code.
your pent_time.c code doesn't work for CPUs below 100MHz
(I'm using a Pentium OverDrive PODP83 (83 MHz)).
first
if (neax < 100000000 || neax > 1000000000) {
always is true because of `neax < 100000000', so I changed that to
if (neax < 10000000 || neax > 1000000000) {
(removed one zero) which then causes a floating point exception in
the following divl instruction:
neax = 0;
nedx = 10000000;
__asm__("divl %2"
:"=a" (neax), "=d" (nedx)
:"r" (cycles_per_second),
"0" (neax), "1" (nedx));
I don't know what's the best way to avoid that limitation:(
Harald
-- All SCSI disks will from now on ___ _____ be required to send an email notice 0--,| /OOOOOOO\ 24 hours prior to complete hardware failure! <_/ / /OOOOOOOOOOO\ \ \/OOOOOOOOOOOOOOO\ \ OOOOOOOOOOOOOOOOO|// Harald Koenig, \/\/\/\/\/\/\/\/\/ Inst.f.Theoret.Astrophysik // / \\ \ koenig@tat.physik.uni-tuebingen.de ^^^^^ ^^^^^- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html