[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Kernel Divide error trap

From: Marcus Brinkmann
Subject: Re: Kernel Divide error trap
Date: Thu, 27 Sep 2001 02:53:44 +0200
User-agent: Mutt/1.3.22i

On Sun, Sep 23, 2001 at 07:26:31PM +0200, Piotr Krukowiecki wrote:
> Kernel Divide error trap, eip 0x15f053
> kernel: Divide error (0), code=0
> Stopped at 0x15f053: idivl %ebx, %eax

ok, I have something for you.  Please try the attached patch, I am quite
confident it will work.  The patch removes the whole function, another one
that looks quite like it, and everything that is related to this code.
It is dead code anyway, nothing was using it.  There is one file,
i386/i386at/if_ns.c, which uses the delaycount variable, but that is a Mach
driver we don't use.  For all the drivers which would use that, we have in
the Linux drivers and the glue code in GNU Mach, which initialize BogoMIPS
(loops_per_sec) and __delay.  If we really, really need this somewhere
we should just use/copy that.

A very conservative change would be to just comment out the findsleep() and
microfind() invocation in clkstart().  This should have the same effect.

If there is no objection, I will check in the patch tomorrow. 
Otherwise I'd be happy with a conservative #if 0 approach, but I am inclined
to strip dead and broken code rather than keep it around.


`Rhubarb is no Egyptian god.' Debian http://www.debian.org brinkmd@debian.org
Marcus Brinkmann              GNU    http://www.gnu.org    marcus@gnu.org

reply via email to

[Prev in Thread] Current Thread [Next in Thread]