Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 4 Jan 2006 07:58:57 -1000
From:      Randy Bush <randy@psg.com>
To:        Alexander Leidinger <Alexander@Leidinger.net>
Cc:        freebsd-current@freebsd.org
Subject:   Re: Fatal trap 18: integer divide fault while in kernel mode
Message-ID:  <17340.3297.187368.120900@roam.psg.com>
References:  <17339.64774.805229.732725@roam.psg.com> <20060104184153.5c59b660@Magellan.Leidinger.net>

next in thread | previous in thread | raw e-mail | index | archive | help
> Index: sys/vm/vm_pageq.c
> ===================================================================
> RCS file: /big/FreeBSD-CVS/src/sys/vm/vm_pageq.c,v
> retrieving revision 1.19
> diff -u -u -r1.19 vm_pageq.c
> --- sys/vm/vm_pageq.c	31 Dec 2005 14:39:20 -0000	1.19
> +++ sys/vm/vm_pageq.c	4 Jan 2006 17:39:09 -0000
> @@ -79,7 +79,7 @@
>  
>  	setPQL2(&pq_cachesize, &pq_cachenways);
>  
> -	if (pq_cachesize > 0)
> +	if (pq_cachesize > 0 && pq_cachenways > 0 && PAGE_SIZE > 1024)
>  		PQ_NUMCOLORS = pq_cachesize / (PAGE_SIZE/1024) / \
>  		    pq_cachenways;
>  	else

worked!

mahalo,
randy




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?17340.3297.187368.120900>