HomeFreeBSD

vt(4): Don't recalculate buffer size if we don't know screen size

Description

vt(4): Don't recalculate buffer size if we don't know screen size

When the screen size is unknown, it's set to 0x0. We can't use that as
the buffer size, otherwise, functions such as vtbuf_fill() will fail.

This fixes a panic on RaspberryPi, where there's no vt(4) backend
configured early in boot.

PR: 193981
Tested by: danilo@
MFC after: 3 days

Details

Provenance
dumbbellAuthored on
Parents
rS272536: Add kernel option KSTACK_USAGE_PROF to sample the stack depth on
Branches
Unknown
Tags
Unknown

Event Timeline