1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-26 16:18:31 +00:00

Refine the MacBook hack to only match early models that have Intel ICH.

Discussed with:	kjim
Approved by:	re (kib)
This commit is contained in:
Rui Paulo 2009-07-27 13:51:55 +00:00
parent 8e71b6947a
commit 1f93ae9453
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=195907
2 changed files with 8 additions and 2 deletions

View File

@ -213,7 +213,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");

View File

@ -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");