Index: branches/mozodojo/i386/libsaio/acpi_patcher.c =================================================================== --- branches/mozodojo/i386/libsaio/acpi_patcher.c (revision 221) +++ branches/mozodojo/i386/libsaio/acpi_patcher.c (revision 222) @@ -189,19 +189,19 @@ uint8_t acpi_cpu_count = 0; char* acpi_cpu_name[32]; -void get_acpi_cpu_names(unsigned char* dsdt, unsigned int length) +void get_acpi_cpu_names(unsigned char* dsdt, uint32_t length) { - unsigned int i; + uint32_t i; for (i=0; i> 6); + uint32_t offset = i + 3 + (dsdt[i+2] >> 6); bool add_name = TRUE; - char j; + uint8_t j; for (j=0; j<4; j++) { Index: branches/mozodojo/i386/libsaio/spd.c =================================================================== --- branches/mozodojo/i386/libsaio/spd.c (revision 221) +++ branches/mozodojo/i386/libsaio/spd.c (revision 222) @@ -200,11 +200,11 @@ if (spd[SPD_MEMORY_TYPE]==SPD_MEMORY_TYPE_SDRAM_DDR3) // DDR3 { - sprintf(asciiSerial, "%X%X%X%X%X%X%X%X", SMST(125) & 0x7, SLST(125), SMST(124), SLST(124), SMST(123), SLST(123), SMST(122), SLST(122)); + sprintf(asciiSerial, "%X%X%X%X%X%X%X%X", SMST(122) /*& 0x7*/, SLST(122), SMST(123), SLST(123), SMST(124), SLST(124), SMST(125), SLST(125)); } else if (spd[SPD_MEMORY_TYPE]==SPD_MEMORY_TYPE_SDRAM_DDR2) // DDR2 or DDR { - sprintf(asciiSerial, "%X%X%X%X%X%X%X%X", SMST(98) & 0x7, SLST(98), SMST(97), SLST(97), SMST(96), SLST(96), SMST(95), SLST(95)); + sprintf(asciiSerial, "%X%X%X%X%X%X%X%X", SMST(95) /*& 0x7*/, SLST(95), SMST(96), SLST(96), SMST(97), SLST(97), SMST(98), SLST(98)); } return strdup(asciiSerial); @@ -224,9 +224,9 @@ } // Check that the spd part name is zero terminated and that it is ascii: - bzero(asciiPartNo, 32); + bzero(asciiPartNo, sizeof(asciiPartNo)); char c; - for (i=start; i