Chameleon

Chameleon Commit Details

Date:2010-05-05 16:45:08 (13 years 11 months ago)
Author:Andy Vandijck
Commit:142
Parents: 141
Message:
Changes:
M/branches/andyvand/i386/libsaio/smbios_patcher.c
M/branches/andyvand/revision
M/branches/andyvand/i386/libsaio/dsdt_patcher.c
M/branches/andyvand/i386/libsaio/bootstruct.c

File differences

branches/andyvand/i386/libsaio/bootstruct.c
3939
4040
4141
42
4243
4344
4445
4546
47
4648
4749
4850
......
8890
8991
9092
93
94
95
96
9197
9298
9399
Node *gMemoryMapNode;
static char platformName[64];
static char SysVolName[1] = { 0xFF }; /* AnV - volume level fix */
void initKernBootStruct( void )
{
Node *node;
Node *optionnode;
int nameLen;
static int init_done = 0;
DT__AddProperty(node, "compatible", nameLen, platformName);
DT__AddProperty(node, "model", nameLen, platformName);
/* AnV - options node fix */
optionnode = DT__AddChild(node, "options");
DT__AddProperty(optionnode, "SystemAudioVolume", 1, SysVolName);
gMemoryMapNode = DT__FindNode("/chosen/memory-map", true);
bootArgs->Version = kBootArgsVersion;
branches/andyvand/i386/libsaio/smbios_patcher.c
142142
143143
144144
145
145
146146
147147
148148
static int sm_get_cputype (char *name, int table_num)
{
if (Platform.CPU.NoCores == 1) {
return 0x0101; // <01 01> Intel Core Solo?
return 0x0201; // <01 02> Intel Core Solo/Duo?
} else if (Platform.CPU.NoCores == 2) {
return 0x0301; // <01 03> Intel Core 2 Duo
} else if (Platform.CPU.NoCores >= 4) {
branches/andyvand/i386/libsaio/dsdt_patcher.c
12181218
12191219
12201220
1221
12211222
1223
12221224
12231225
12241226
{
/* XXX aserebln why uint32 cast if pointer is uint64 ? */
acpi20_p = (uint32_t)rsdp_mod;
acpi10_p = (uint32_t)rsdp_mod;
addConfigurationTable(&gEfiAcpi20TableGuid, &acpi20_p, "ACPI_20");
addConfigurationTable(&gEfiAcpiTableGuid, &acpi10_p, "ACPI");
}
else
{
branches/andyvand/revision
1
1
69:140
69:141

Archive Download the corresponding diff file

Revision: 142