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

From: Randy Bush <randy_at_psg.com>
Date: Wed, 4 Jan 2006 07:58:57 -1000
> 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
> _at__at_ -79,7 +79,7 _at__at_
>  
>  	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
Received on Wed Jan 04 2006 - 16:59:11 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:50 UTC