Chameleon

Chameleon Commit Details

Date:2010-07-24 16:53:19 (13 years 9 months ago)
Author:Rekursor
Commit:219
Parents: 218
Message:Converted serial num to be displayed from little to big endian format to match Everest results
Changes:
M/trunk/i386/libsaio/spd.c

File differences

trunk/i386/libsaio/spd.c
200200
201201
202202
203
203
204204
205205
206206
207
207
208208
209209
210210
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);

Archive Download the corresponding diff file

Revision: 219