Re: Kernel 2.2.1 hangs on boot

Alan Cox (alan@lxorguk.ukuu.org.uk)
Fri, 26 Feb 1999 00:40:46 +0000 (GMT)


> He explained that the calibrate_tsc() subtracted the two register values it
> gets, and uses that number in the divide.

Its a bit more complex than that. Intel guarantees that rdtsc wont return
the same 64bit value (the low bits change fastest) in a 10 year period.

> A pretty effective fix would be to amend the code to say
>
> IF the two register readings are the same
> THEN clear the TSC flag
>
> Will this just "cover up" the problem, or is it a "kosher" test ?

If its a divison by zero - what if its a straight overflow

-
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.tux.org/lkml/