Chameleon

Chameleon Commit Details

Date:2011-10-30 15:46:07 (12 years 5 months ago)
Author:armel cadet-petit
Commit:1676
Parents: 1675
Message:few fixes + doc update
Changes:
M/branches/cparm/doc/ModuleHelp.txt
M/branches/cparm/i386/modules/ACPICodec/acpi_codec.c

File differences

branches/cparm/doc/ModuleHelp.txt
6565
6666
6767
68
69
70
6871
6972
7073
......
114117
115118
116119
120
121
117122
118123
119124
if smbios.plist doesn't exist, factory
values are kept(Disabled by default).
randomSerial=Yes|No Generate a machine serial number randomly, can be useful
for iCloud registration(Disabled by default).
RamDiskLoader module:
--------------------
EnableRamDiskLoader=Yes|NoFully enable/disable the RamDiskLoader module (Enabled by default, if the module is installed)
GenerateCStates=Yes|NoEnable/Disable Generate C-states SSDT table (Disabled by default).
EnableC4State=Yes|NoEnable C4 state in C-states SSDT table, GenerateCStates=Yes is needed (Disabled by default).
StripAPICTable=Yes|NoEnable/Disable Generate a stripped MADT (APIC) table (Enabled by default).
IntelFADTSpec=Yes|NoEnable/Disable Intel recommendations for the FADT table (Enabled by default).
Warning : When enabled, this setting disable the C2 and C3 C-states, but be aware that these are the Intel's recommendations for the newest CPU,
if you really need those c-states please disable IntelFADTSpec.
branches/cparm/i386/modules/ACPICodec/acpi_codec.c
210210
211211
212212
213
213
214214
215215
216216
......
377377
378378
379379
380
380
381381
382382
383383
......
28662866
28672867
28682868
2869
2869
28702870
2871
2872
2873
28712874
28722875
28732876
......
29002903
29012904
29022905
2906
2907
2908
29032909
29042910
29052911
......
29322938
29332939
29342940
2941
2942
2943
29352944
29362945
29372946
......
30243033
30253034
30263035
3027
3036
30283037
30293038
30303039
......
48994908
49004909
49014910
4902
4911
49034912
49044913
49054914
#define ACPI_TABLE_LIST_FULL_NON_RESERVED MAX_ACPI_TABLE + 1
#define ULONG_MAX_32 4294967295UL
//#define ULONG_MAX_32 4294967295UL
#define __RES(s, u)\
inline unsigned u\
U64 ptr = xsdt->TableOffsetEntry[index];
{
if (ptr > ULONG_MAX_32)
if (ptr > ULONG_MAX)
{
#if DEBUG_ACPI
printf("Warning xsdt->TableOffsetEntry[%d]: Beyond addressable memory in this CPU mode, ignored !!!\n",index);
{
// Process sub-tables with Type as 4: Local APIC NMI
ACPI_MADT_LOCAL_APIC_NMI *nmi = current;
current = nmi + 1;
current = nmi + 1;
if (!(nmi->IntiFlags & ACPI_MADT_ENABLED))
continue;
if (LOCAL_APIC_NMI_CNT >= nb_cpu)
continue;
ACPI_MADT_LOCAL_SAPIC *sapic = current;
current = sapic + 1;
if (!(sapic->LapicFlags & ACPI_MADT_ENABLED))
continue;
if (LOCAL_SAPIC_CNT >= nb_cpu)
continue;
ACPI_MADT_INTERRUPT_SOURCE *intsrc = current;
current = intsrc + 1;
if (!(intsrc->IntiFlags & ACPI_MADT_ENABLED))
continue;
if (INT_SRC_CNT >= nb_cpu)
continue;
{
MadtPointer = (ACPI_TABLE_MADT *)madt_file;
new_table_list[new_table_index] = 0ul; // This way, the non-patched table will not be added in our new rsdt/xsdt table list // note: for now we don't patch this table
new_table_list[new_table_index] = 0ul; // This way, the non-patched table will not be added in our new rsdt/xsdt table list
}
else
{
U64 ptr = xsdt->TableOffsetEntry[index];
{
if (ptr > ULONG_MAX_32)
if (ptr > ULONG_MAX)
{
#if DEBUG_ACPI
printf("Warning xsdt->TableOffsetEntry[%d]: Beyond addressable memory in this CPU mode, ignored !!!\n",index);

Archive Download the corresponding diff file

Revision: 1676