Chameleon

Chameleon Commit Details

Date:2014-01-29 02:11:49 (5 years 4 months ago)
Author:ErmaC
Commit:2358
Parents: 2357
Message:minus correction
Changes:
M/trunk/i386/libsaio/acpi_patcher.c
M/trunk/i386/libsaio/fake_efi.c
M/trunk/i386/libsaio/aml_generator.c

File differences

trunk/i386/libsaio/acpi_patcher.c
147147
148148
149149
150
150
151151
152152
153153
......
772772
773773
774774
775
775
776776
777777
778778
......
976976
977977
978978
979
979
980980
981981
982982
......
989989
990990
991991
992
992
993993
994994
995995
......
10431043
10441044
10451045
1046
1046
10471047
10481048
10491049
......
10881088
10891089
10901090
1091
1091
10921092
10931093
10941094
......
11041104
11051105
11061106
1107
1107
11081108
11091109
11101110
return tableAddr;
}
close (fd);
verbose("Couldn't allocate memory for table \n", dirspec);
printf("Couldn't allocate memory for table \n", dirspec);
}
//printf("Couldn't find table %s\n", filename);
return NULL;
DBG("New @%x,%x\n",fadt_mod->DSDT,fadt_mod->X_DSDT);
DBG("FADT: Using custom DSDT!\n");
verbose("FADT: Using custom DSDT!\n");
}
// Correct the checksum
rsdt_entries[i-dropoffset+j]=(uint32_t)new_ssdt[j];
}
DBG("RSDT: Added %d SSDT table(s)\n", ssdt_count);
verbose("RSDT: Added %d SSDT table(s)\n", ssdt_count);
}
DBG("New checksum %d at %x\n", rsdt_mod->Checksum,rsdt_mod);
} else {
rsdp_mod->RsdtAddress=0;
verbose("RSDT not found or RSDT incorrect\n");
printf("RSDT not found or incorrect\n");
}
if (version) {
fadt->Length);
if (!fadt || (uint64_t)xsdt_entries[i] >= 0xffffffff || fadt->Length>0x10000) {
DBG("FADT incorrect or after 4GB. Dropping XSDT\n");
verbose("FADT incorrect or after 4GB. Dropping XSDT\n");
goto drop_xsdt;
}
xsdt_entries[i-dropoffset+j]=(uint32_t)new_ssdt[j];
}
DBG("Added %d SSDT table(s) into XSDT\n", ssdt_count);
verbose("Added %d SSDT table(s) into XSDT\n", ssdt_count);
}
// Correct the checksum of XSDT
*/
rsdp_mod->XsdtAddress=0xffffffffffffffffLL;
DBG("XSDT not found or XSDT incorrect\n");
verbose("XSDT not found or XSDT incorrect\n");
}
}
trunk/i386/libsaio/aml_generator.c
371371
372372
373373
374
374
375375
376376
377377
......
576576
577577
578578
579
579
580580
581581
582582
if (node) {
unsigned int offset = 0;
unsigned int len = strlen(StringBuf)+1;
unsigned int len = strlen(StringBuf);
node->Type = AML_CHUNK_BUFFER;
node->Length = (uint8_t)(len + 3);
node->Buffer = malloc (node->Length);
case AML_CHUNK_DEVICE:
offset = aml_write_byte(AML_CHUNK_OP, buffer, offset);
offset = aml_write_byte(node->Type, buffer, offset);
offset = aml_write_size(node->Size-3, buffer, offset);
offset = aml_write_size(node->Size-2, buffer, offset);
offset = aml_write_buffer(node->Buffer, node->Length, buffer, offset);
break;
trunk/i386/libsaio/fake_efi.c
630630
631631
632632
633
634
633
635634
636635
637636
638637
639
640
638
641639
642640
643641
DT__AddProperty(efiPlatformNode, SYSTEM_ID_PROP, UUID_LEN, (EFI_UINT32 *)Platform.UUID);
// Export SystemSerialNumber if present
if ((ret16=getSmbiosChar16("SMserial", &len)))
{
if ((ret16=getSmbiosChar16("SMserial", &len))) {
DT__AddProperty(efiPlatformNode, SYSTEM_SERIAL_PROP, len, ret16);
}
// Export Model if present
if ((ret16=getSmbiosChar16("SMproductname", &len)))
{
if ((ret16=getSmbiosChar16("SMproductname", &len))) {
DT__AddProperty(efiPlatformNode, MODEL_PROP, len, ret16);
}

Archive Download the corresponding diff file

Revision: 2358