Chameleon

Chameleon Commit Details

Date:2015-04-16 18:05:03 (8 years 11 months ago)
Author:ErmaC
Commit:2655
Parents: 2654
Message:Typo
Changes:
M/trunk/i386/libsaio/gma.c
M/trunk/i386/libsaio/spd.c
M/trunk/i386/libsaio/efi.h
M/trunk/i386/libsaio/disk.c
M/trunk/i386/boot2/modules.c
M/trunk/i386/libsaio/device_inject.c

File differences

trunk/i386/libsaio/efi.h
230230
231231
232232
233
234
235
233
234
235
236236
237237
238238
// physical memory protection on range
#define EFI_MEMORY_WP 0x0000000000001000ULL/* write-protect */
#define EFI_MEMORY_RP 0x0000000000002000ULL/* read-protect */
#define EFI_MEMORY_XP 0x0000000000004000ULL/* execute-protect */
#define EFI_MEMORY_WP0x0000000000001000ULL/* write-protect */
#define EFI_MEMORY_RP0x0000000000002000ULL/* read-protect */
#define EFI_MEMORY_XP0x0000000000004000ULL/* execute-protect */
// range requires a runtime mapping
trunk/i386/libsaio/spd.c
137137
138138
139139
140
140
141141
142142
143143
144144
145
145
146146
147147
148148
......
411411
412412
413413
414
414
415415
416416
417417
// Get Vendor Name from spd, 2 cases handled DDR3 and DDR2,
// have different formats, always return a valid ptr.
const char * getVendorName(RamSlotInfo_t* slot, uint32_t base, int slot_num)
const char *getVendorName(RamSlotInfo_t *slot, uint32_t base, int slot_num)
{
uint8_t bank = 0;
uint8_t code = 0;
int i = 0;
uint8_t * spd = (uint8_t *) slot->spd;
uint8_t *spd = (uint8_t *) slot->spd;
if (spd[SPD_MEMORY_TYPE]==SPD_MEMORY_TYPE_SDRAM_DDR3) // DDR3
{
slot->Vendor,
slot->PartNo,
slot->SerialNo);
slot->InUse = true;
slot->InUse = true;
}
// laptops sometimes show slot 0 and 2 with slot 1 empty when only 2 slots are presents so:
trunk/i386/libsaio/gma.c
8484
8585
8686
87
87
8888
8989
9090
{ 0x00,0x00,0x00,0x00 },//12 "AAPL01,Interlace"
{ 0x00,0x00,0x00,0x00 },//13 "AAPL01,Inverter"
{ 0x08,0x52,0x00,0x00 },//14 "AAPL01,InverterCurrent"
{ 0x00,0x00,0x00,0x00 },//15 "AAPL01,InverterCurrency"
{ 0x00,0x00,0x00,0x00 },//15 "AAPL01,InverterCurrency"
{ 0x00,0x00,0x00,0x00 },//16 "AAPL01,LinkFormat"
{ 0x01,0x00,0x00,0x00 },//17 "AAPL01,LinkType"
{ 0x01,0x00,0x00,0x00 },//18 "AAPL01,Pipe"
trunk/i386/libsaio/device_inject.c
405405
406406
407407
408
408
409409
410410
411411
* Decodes a sequence of 'len' hexadecimal chars from 'hex' into *
* a binary. returns -1 in case of error (i.e. badly formed chars) *
*******************************************************************/
int hex2bin(const char *hex, uint8_t *bin, int len)
int hex2bin( const char *hex, uint8_t *bin, int len )
{
char*p;
inti;
trunk/i386/libsaio/disk.c
126126
127127
128128
129
130
129
130
131131
132132
133133
* biosbuf points to a sector within the track cache, and is
* updated by Biosread().
*/
static char * const trackbuf = (char *) ptov(BIOS_ADDR);
static char * biosbuf;
static char *const trackbuf = (char *) ptov(BIOS_ADDR);
static char *biosbuf;
static struct DiskBVMap *gDiskBVMap = NULL;
static struct disk_blk0 *gBootSector = NULL;
trunk/i386/boot2/modules.c
528528
529529
530530
531
531
532532
533533
534534
// =dylibCommand->dylib.compatibility_version;
if(dylib_loader)
{
char* name = malloc(strlen(module) + strlen(".dylib") + 1);
char *name = malloc(strlen(module) + strlen(".dylib") + 1);
sprintf(name, "%s.dylib", module);
if (!dylib_loader(name))

Archive Download the corresponding diff file

Revision: 2655