prevent wrong patching Field

Signed-off-by: Sergey Isakov <isakov-sl@bk.ru>
This commit is contained in:
Sergey Isakov 2019-12-06 12:21:09 +03:00
parent 85906d7816
commit 90148880ac
2 changed files with 5 additions and 2 deletions

View File

@ -1392,8 +1392,11 @@ UINT32 CorrectOuters (UINT8 *dsdt, UINT32 len, UINT32 adr, INT32 shift)
if ((dsdt[i] == 0x5B) && (dsdt[i+1] == 0x82) && !CmpNum(dsdt, i, TRUE)) { //device candidate
k = i + 2;
} else if ((dsdt[i] == 0x10) && !CmpNum(dsdt, i, TRUE)) { //device scope like Scope (_PCI)
//additional check for Field
if (!((dsdt[i - 2] == 0x5B) && (dsdt[i - 1] == 0x81))) {
k = i + 1;
}
}
if ( k != 0) {
size = get_size(dsdt, k);
if (size) {

View File

@ -342,7 +342,7 @@ radeon_card_info_t radeon_cards[] = {
{ 0x6819, CHIP_FAMILY_PITCAIRN, "AMD Radeon HD 7850 Series", kFutomaki }, //R7 265
// VERDE
{ 0x6820, CHIP_FAMILY_VERDE, "AMD Radeon HD 7700 Series", kBuri }, // Mobile
{ 0x6820, CHIP_FAMILY_VERDE, "AMD Radeon R9 m370x", kBuri }, // Mobile
{ 0x6821, CHIP_FAMILY_VERDE, "AMD Radeon HD 7700 Series", kBuri }, // Mobile
{ 0x6822, CHIP_FAMILY_VERDE, "AMD Radeon E8860", kBuri }, // Mobile
{ 0x6823, CHIP_FAMILY_VERDE, "AMD Radeon HD 8800M Series", kBuri }, // Mobile