Skip to content

Commit

Permalink
apply dsdt fix changes to master
Browse files Browse the repository at this point in the history
Signed-off-by: SergeySlice <[email protected]>
  • Loading branch information
SergeySlice committed Jan 6, 2020
1 parent f236554 commit 3f3b85d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion rEFIt_UEFI/Platform/FixBiosDsdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -1391,7 +1391,11 @@ UINT32 CorrectOuters (UINT8 *dsdt, UINT32 len, UINT32 adr, INT32 shift)
k = 0;
if ((dsdt[i] == 0x5B) && (dsdt[i+1] == 0x82) && !CmpNum(dsdt, i, TRUE)) { //device candidate
k = i + 2;
} else if ((dsdt[i] == 0x10) && (dsdt[i-1] != 0x0A) && !CmpNum(dsdt, i, TRUE)) { //device scope like Scope (_PCI)
} else if ((dsdt[i] == 0x10) && //looks like Scope
(dsdt[i-1] != 0xA0) && //this is If()
(dsdt[i-1] != 0xA1) && //this is Else()
(dsdt[i-1] != 0xA2) && //this is While()
!CmpNum(dsdt, i, TRUE)) { //device scope like Scope (_PCI)
//additional check for Field
// a problem with fields 52 4D 53 33 10 41 4D 45 4D
// 1. Search outer filed
Expand Down

0 comments on commit 3f3b85d

Please sign in to comment.