Chameleon

Chameleon Commit Details

Date:2010-07-22 21:17:36 (9 years 2 months ago)
Author:mozo
Commit:201
Parents: 200
Message:Fixed bug _PSS & _CST SSDTs was generated multiple times for all versions of ACPI
Changes:
M/branches/mozodojo/i386/libsaio/acpi_patcher.c

File differences

branches/mozodojo/i386/libsaio/acpi_patcher.c
386386
387387
388388
389
389
390390
391391
392392
......
893893
894894
895895
896
896
897
898
897899
900
898901
899902
900903
904
905
901906
907
902908
903909
904910
......
10051011
10061012
10071013
1014
1015
10081016
1017
10091018
10101019
10111020
1021
1022
10121023
1024
10131025
10141026
10151027
ssdt->Checksum = 256 - checksum8(ssdt, ssdt->Length);
//dumpPhysAddr("C-States SSDT content: ", ssdt, ssdt_size);
verbose ("SSDT with CPU C-States generated successfully\n");
return ssdt;
rsdt_entries[i-dropoffset]=(uint32_t)fadt_mod;
// Generate _CST SSDT
if (generate_cstates && (new_ssdt[ssdt_count] = generate_cst_ssdt(fadt_mod)))
if (generate_cstates && (new_ssdt[ssdt_count] = generate_cst_ssdt(fadt_mod)))
{
generate_cstates = FALSE; // Generate SSDT only once!
ssdt_count++;
}
// Generating _PSS SSDT
if (generate_pstates && (new_ssdt[ssdt_count] = generate_pss_ssdt((void*)fadt_mod->DSDT)))
{
generate_pstates = FALSE; // Generate SSDT only once!
ssdt_count++;
}
continue;
}
// Generate _CST SSDT
if (generate_cstates && (new_ssdt[ssdt_count] = generate_cst_ssdt(fadt_mod)))
{
generate_cstates = FALSE; // Generate SSDT only once!
ssdt_count++;
}
// Generating _PSS SSDT
if (generate_pstates && (new_ssdt[ssdt_count] = generate_pss_ssdt((void*)fadt_mod->DSDT)))
{
generate_pstates = FALSE; // Generate SSDT only once!
ssdt_count++;
}
continue;
}

Archive Download the corresponding diff file

Revision: 201