summaryrefslogtreecommitdiffstats
path: root/sys/contrib/dev/acpica
diff options
context:
space:
mode:
authornjl <njl@FreeBSD.org>2004-03-04 05:57:41 +0000
committernjl <njl@FreeBSD.org>2004-03-04 05:57:41 +0000
commit02a9c630feda486dca757a1fcaf7e784526ad58a (patch)
treed8d9f022bac02e5c4499006ca7dbc2594ad171c0 /sys/contrib/dev/acpica
parent1d8173495b6e57f417c8298f0ebed0b920f52921 (diff)
downloadFreeBSD-src-02a9c630feda486dca757a1fcaf7e784526ad58a.zip
FreeBSD-src-02a9c630feda486dca757a1fcaf7e784526ad58a.tar.gz
Part 2 of Project Evil: Pretend to be Windows 2000 for buggy ASL that
always expects to be running on some MS OS. A survey of ASL shows that this is the 2nd most common expected OS value. (1st is Win98 and we don't emulate its buggy ACPI support.) Our ACPI support is similar to Win2k, also. Put this behavior under ACPICA_PEDANTIC so we can get back to our previous behavior for OSV testing.
Diffstat (limited to 'sys/contrib/dev/acpica')
-rw-r--r--sys/contrib/dev/acpica/acfreebsd.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/sys/contrib/dev/acpica/acfreebsd.h b/sys/contrib/dev/acpica/acfreebsd.h
index 9edbe39..6c7b066 100644
--- a/sys/contrib/dev/acpica/acfreebsd.h
+++ b/sys/contrib/dev/acpica/acfreebsd.h
@@ -119,10 +119,17 @@
/*
* Some systems' ASL may have problems because they look for names
- * of Microsoft operating systems. To override this, set hw.acpi.os_name
- * to the appropriate string.
+ * of Microsoft operating systems. We default to "Microsoft Windows NT"
+ * (aka NT5 or Windows 2000) because it is most similar to our
+ * implementation and also most prevalent.
+ *
+ * To override this, set hw.acpi.os_name to the appropriate string.
*/
+#ifndef ACPICA_PEDANTIC
+#define ACPI_OS_NAME "Microsoft Windows NT"
+#else
#define ACPI_OS_NAME "FreeBSD"
+#endif
/* FreeBSD uses GCC */
OpenPOWER on IntegriCloud