On Fri, Sep 29, 2000 at 11:36:07AM +0200, Maciej W. Rozycki wrote:
> Well, I asked for testing before the commit, but nobody bothered to write
> anything, so I assumed everything is correct, sigh...
Not sigh ... The lesson that not speaking up is a also wrong!
> OK, the /240 is definitely tested (the uptime of my -test7 was three
> weeks before I rebooted to test NFS problems) so /260 should work for you.
> But the latter is R4K. As Ralf already remarked me in a separate mail,
> 64-bit registers can get corrupted for the 32-bit kernel (but 64-bit code
> is used throughout the kernel, strange), so please change the "#if
> _MIPS_ISA" at the beginning of include/asm-mips/div64.h into "#if 1" and
> tell me if it works for the /260.
The ddiv usage outside of do_div / do_div64_32 is actually ok because
interrupts are always disabled. We don't have the same guarantee for
do_div / do_div64_32 calls.
Hmm... We got two error scenarios left - bus errors and cache errors. If
we get one of those doomsday is near anyway ... Anyway, these are rare,
so we rather make these exception handlers pay the price.