> From: "David N. Arnold" <david.n.arn...@gmail.com>
> Date: Tue, 11 May 2021 22:29:58 -0400
> 
> On Tue, May 11, 2021 at 4:45 PM Mark Kettenis <mark.kette...@xs4all.nl> wrote:
> > Nice bit of debugging!
> 
> Thanks!  This is my first serious go with OpenBSD.
> 
> > Anyway, here is a diff that prevents the overrun and raises the number
> > of map entries to 128.  Can you try this diff and confirm it works for
> > you?
> 
> It works!  I also tried cranking the array size down to make sure the
> break condition works and it does.  The system boots even with only 16
> entries, but dmesg doesn't report the full memory amount.
> 
> Out of curiosity, is there a reason why this is just a break instead
> of a panic?  I have no idea if there are any systems that need more
> than 128 entries, but if they do, they wouldn't be able to use all of
> the available memory.

A panic would prevent the system from booting.  It is better to boot
with reduced memory capacity than not booting at all is it?

That said, a warning message may be appropriate here.

Reply via email to