Subject: pool_sethardlimit failure
To: None <tech-kern@netbsd.org>
From: =?iso-8859-1?Q?P=E5l_Halvorsen?= <paalh@unik.no>
List: tech-kern
Date: 05/23/2000 15:09:39
Hi.

I have a pool_sethardlimit problem. During boot time i initialize a
mbuf cluster-like pool:

=09pool_init(&mmclpool, MMCLBYTES, 0, 0, 0, "mmclpl", 0,
=09=09mmclpool_alloc, mmclpool_release, 0);

but when setting a hard limit of the number of clusters the kernel
is to support

  =09pool_sethardlimit(&mmclpool, NBMMBCL, "WARNING: mmclpool limit reached=
;
=09=09increase NBMMBCL", 60);

the booting fails (NBMMBCL =3D 1536, MMCLBYTES =3D 16384) giving this messa=
ge:

kernel: integer divide fault trap, code=3D0
Stopped in at _pool_sethardlimit+0x43:     divl   %ecx,%eax=20

Does anyone know what might have happend?

PS! I have rebooted several times before using this pool fnctions and this
    failure have not occured before.

Thank you in advance.

Regards,
P=E5l Halvorsen