Skip to content

Commit 3f3b85d

Browse files
committed
apply dsdt fix changes to master
Signed-off-by: SergeySlice <isakov-sl@bk.ru>
1 parent f236554 commit 3f3b85d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

rEFIt_UEFI/Platform/FixBiosDsdt.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1391,7 +1391,11 @@ UINT32 CorrectOuters (UINT8 *dsdt, UINT32 len, UINT32 adr, INT32 shift)
13911391
k = 0;
13921392
if ((dsdt[i] == 0x5B) && (dsdt[i+1] == 0x82) && !CmpNum(dsdt, i, TRUE)) { //device candidate
13931393
k = i + 2;
1394-
} else if ((dsdt[i] == 0x10) && (dsdt[i-1] != 0x0A) && !CmpNum(dsdt, i, TRUE)) { //device scope like Scope (_PCI)
1394+
} else if ((dsdt[i] == 0x10) && //looks like Scope
1395+
(dsdt[i-1] != 0xA0) && //this is If()
1396+
(dsdt[i-1] != 0xA1) && //this is Else()
1397+
(dsdt[i-1] != 0xA2) && //this is While()
1398+
!CmpNum(dsdt, i, TRUE)) { //device scope like Scope (_PCI)
13951399
//additional check for Field
13961400
// a problem with fields 52 4D 53 33 10 41 4D 45 4D
13971401
// 1. Search outer filed

0 commit comments

Comments
 (0)