Re: Panic "Fatal trap 18: integer divide fault while in kernel mode"

From: David Wolfskill <david_at_catwhisker.org>
Date: Thu, 30 Apr 2009 14:40:02 -0700
On Fri, May 01, 2009 at 01:09:45AM +0400, pluknet wrote:
> ...
> I decided to go another way. Before last changes in mp_machdep.c
> cpu_topo() included
> previously that piece of code which now is in topo_probe().
> 
> What if just return that part back to cpu_topo() ?
> 
> David, can you thy this? It works for me now at least.
> 
> $ diff -urp sys/amd64/amd64/mp_machdep.c.orig sys/amd64/amd64/mp_machdep.c
> --- sys/amd64/amd64/mp_machdep.c.orig   2009-05-01 00:59:55.000000000 +0400
> +++ sys/amd64/amd64/mp_machdep.c        2009-05-01 01:00:20.000000000 +0400
> _at__at_ -309,6 +309,8 _at__at_ cpu_topo(void)
>  {
>         int cg_flags;
> 
> +       topo_probe();
> +
>         /*
>          * Determine whether any threading flags are
>          * necessry.
> $ diff -urp sys/i386/i386/mp_machdep.c.orig sys/i386/i386/mp_machdep.c
> --- sys/i386/i386/mp_machdep.c.orig     2009-05-01 01:01:53.000000000 +0400
> +++ sys/i386/i386/mp_machdep.c  2009-05-01 01:01:41.000000000 +0400
> _at__at_ -362,6 +362,8 _at__at_ cpu_topo(void)
>  {
>         int cg_flags;
> 
> +       topo_probe();
> +
>         /*
>          * Determine whether any threading flags are
>          * necessry.
> 

I was able to hand-apply that, rebuild kernel, and it booted
successfully -- thanks!

Peace,
david
-- 
David H. Wolfskill				david_at_catwhisker.org
Depriving a girl or boy of an opportunity for education is evil.

See http://www.catwhisker.org/~david/publickey.gpg for my public key.

Received on Thu Apr 30 2009 - 19:40:07 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:46 UTC