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:
parent
8e71b6947a
commit
1f93ae9453
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=195907
@ -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");
|
||||
|
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user