Always set "is_console" property to true when WSDISPLAY_MULTICONS is defined
This commit is contained in:
parent
6bea2a2173
commit
517dc97c4b
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: simplefb.c,v 1.2 2017/09/04 18:01:28 jmcneill Exp $ */
|
||||
/* $NetBSD: simplefb.c,v 1.3 2017/12/18 19:06:32 jmcneill Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2017 Jared McNeill <jmcneill@invisible.ca>
|
||||
|
@ -26,8 +26,10 @@
|
|||
* SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#include "opt_wsdisplay_compat.h"
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: simplefb.c,v 1.2 2017/09/04 18:01:28 jmcneill Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: simplefb.c,v 1.3 2017/12/18 19:06:32 jmcneill Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/bus.h>
|
||||
|
@ -177,13 +179,16 @@ simplefb_attach_genfb(struct simplefb_softc *sc)
|
|||
ops.genfb_ioctl = simplefb_ioctl;
|
||||
ops.genfb_mmap = simplefb_mmap;
|
||||
|
||||
#ifdef WSDISPLAY_MULTICONS
|
||||
const bool is_console = true;
|
||||
#else
|
||||
const bool is_console = phandle == simplefb_console_phandle;
|
||||
|
||||
prop_dictionary_set_bool(dict, "is_console", is_console);
|
||||
|
||||
if (is_console)
|
||||
aprint_normal_dev(sc->sc_gen.sc_dev,
|
||||
"switching to framebuffer console\n");
|
||||
#endif
|
||||
|
||||
prop_dictionary_set_bool(dict, "is_console", is_console);
|
||||
|
||||
genfb_attach(&sc->sc_gen, &ops);
|
||||
|
||||
|
|
Loading…
Reference in New Issue