Module Name:    src
Committed By:   joerg
Date:           Wed Sep  2 15:42:31 UTC 2009

Modified Files:
        src/sys/arch/x86/acpi: acpi_wakeup.c

Log Message:
Be a bit more noisy by telling the user VGA_POST is missing in the
kernel config when trying machdep.acpi_vbios_reset=2.


To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 src/sys/arch/x86/acpi/acpi_wakeup.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/acpi/acpi_wakeup.c
diff -u src/sys/arch/x86/acpi/acpi_wakeup.c:1.17 src/sys/arch/x86/acpi/acpi_wakeup.c:1.18
--- src/sys/arch/x86/acpi/acpi_wakeup.c:1.17	Wed Sep  2 15:25:07 2009
+++ src/sys/arch/x86/acpi/acpi_wakeup.c	Wed Sep  2 15:42:31 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: acpi_wakeup.c,v 1.17 2009/09/02 15:25:07 joerg Exp $	*/
+/*	$NetBSD: acpi_wakeup.c,v 1.18 2009/09/02 15:42:31 joerg Exp $	*/
 
 /*-
  * Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: acpi_wakeup.c,v 1.17 2009/09/02 15:25:07 joerg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: acpi_wakeup.c,v 1.18 2009/09/02 15:42:31 joerg Exp $");
 
 /*-
  * Copyright (c) 2001 Takanori Watanabe <[email protected]>
@@ -466,8 +466,11 @@
 		return EINVAL;
 
 #ifndef VGA_POST
-	if (t == 2)
+	if (t == 2) {
+		aprint_error("WARNING: machdep.acpi_vbios_reset=2 "
+		    "unsupported (no option VGA_POST in kernel config)\n");
 		return EINVAL;
+	}
 #endif
 
 	acpi_md_vbios_reset = t;

Reply via email to