Module Name: src Committed By: msaitoh Date: Tue Sep 6 01:44:24 UTC 2022
Modified Files: src/sys/arch/x86/pci: pci_machdep.c Log Message: Fix compile error. Compile test only. To generate a diff of this commit: cvs rdiff -u -r1.92 -r1.93 src/sys/arch/x86/pci/pci_machdep.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/x86/pci/pci_machdep.c diff -u src/sys/arch/x86/pci/pci_machdep.c:1.92 src/sys/arch/x86/pci/pci_machdep.c:1.93 --- src/sys/arch/x86/pci/pci_machdep.c:1.92 Mon Sep 5 14:18:51 2022 +++ src/sys/arch/x86/pci/pci_machdep.c Tue Sep 6 01:44:24 2022 @@ -1,4 +1,4 @@ -/* $NetBSD: pci_machdep.c,v 1.92 2022/09/05 14:18:51 riastradh Exp $ */ +/* $NetBSD: pci_machdep.c,v 1.93 2022/09/06 01:44:24 msaitoh Exp $ */ /*- * Copyright (c) 1997, 1998 The NetBSD Foundation, Inc. @@ -73,7 +73,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: pci_machdep.c,v 1.92 2022/09/05 14:18:51 riastradh Exp $"); +__KERNEL_RCSID(0, "$NetBSD: pci_machdep.c,v 1.93 2022/09/06 01:44:24 msaitoh Exp $"); #include <sys/types.h> #include <sys/param.h> @@ -1249,8 +1249,13 @@ device_pci_register(device_t dev, void * * framebuffer address? Tough...but this has * probably never worked. */ +#if NGENFB > 0 prop_dictionary_set_bool(dict, "is_console", genfb_is_console()); +#else + prop_dictionary_set_bool(dict, "is_console", + true); +#endif prop_dictionary_set_bool(dict, "clear-screen", false); #if NWSDISPLAY > 0 && NGENFB > 0