diff options
author | rpaulo <rpaulo@FreeBSD.org> | 2009-07-27 13:51:55 +0000 |
---|---|---|
committer | rpaulo <rpaulo@FreeBSD.org> | 2009-07-27 13:51:55 +0000 |
commit | 9b50a8b4b6400d84ba399ce6d5c5d9ff9a6ddb2c (patch) | |
tree | 4b3e38144ccbe4c23562a04e34270cf523976ff7 /sys/i386 | |
parent | 23576da010b9826c283b7e25c08045c9cda6308d (diff) | |
download | FreeBSD-src-9b50a8b4b6400d84ba399ce6d5c5d9ff9a6ddb2c.zip FreeBSD-src-9b50a8b4b6400d84ba399ce6d5c5d9ff9a6ddb2c.tar.gz |
Refine the MacBook hack to only match early models that have Intel ICH.
Discussed with: kjim
Approved by: re (kib)
Diffstat (limited to 'sys/i386')
-rw-r--r-- | sys/i386/i386/machdep.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/i386/i386/machdep.c b/sys/i386/i386/machdep.c index abef65e..440b492 100644 --- a/sys/i386/i386/machdep.c +++ b/sys/i386/i386/machdep.c @@ -257,7 +257,10 @@ cpu_startup(dummy) */ sysenv = getenv("smbios.system.product"); if (sysenv != NULL) { - if (strncmp(sysenv, "MacBook", 7) == 0) { + if (strncmp(sysenv, "MacBook1,1", 10) == 0 || + strncmp(sysenv, "MacBookPro1,1", 13) == 0 || + strncmp(sysenv, "MacBookPro1,2", 13) == 0 || + strncmp(sysenv, "Macmini1,1", 10) == 0) { if (bootverbose) printf("Disabling LEGACY_USB_EN bit on " "Intel ICH.\n"); |