[patch] Disable bios probe if acpi is enabled

Sean Bruno seanbru at yahoo-inc.com
Fri Mar 2 20:49:09 UTC 2012


I'm noting that newer machines are completely hosed if we attempt to
probe for bios values.  I'm proposing this change.

-bash-4.2$ p4 diff -du //depot/yahoo/ybsd_7/src/sys/i386/i386/bios.c
--- //depot/yahoo/ybsd_7/src/sys/i386/i386/bios.c       2011-09-16
22:47:30.000000000 0000
+++ /home/seanbru/ybsd_7/src/sys/i386/i386/bios.c       2011-09-16
22:47:30.000000000 0000
@@ -84,6 +84,12 @@
     char                       *p;
     
     /*
+     * Don't do bios probing if acpi is enabled, its
+     * pointless and breaks on newer systems
+     */
+    if (!resource_disabled("acpi", 0))
+       return;
+    /*
      * BIOS32 Service Directory, PCI BIOS
      */

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: This is a digitally signed message part
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20120302/32cbf264/attachment.pgp


More information about the freebsd-hackers mailing list