Chameleon

Chameleon Commit Details

Date:2010-09-22 16:03:03 (8 years 11 months ago)
Author:Evan Lojewski
Commit:537
Parents: 536
Message:A few more bugfixes / typo fixes
Changes:
M/branches/meklort/i386/libsaio/smbios_patcher.c
M/branches/meklort/i386/modules/GUI/gui.h
M/branches/meklort/i386/libsaio/fake_efi.c
M/branches/meklort/i386/modules/ACPIPatcher/ACPIPatcher.c
M/branches/meklort/i386/boot2/modules.h

File differences

branches/meklort/i386/libsaio/smbios_patcher.c
493493
494494
495495
496
496
497497
498498
499499
COMPARE_DWORD(smbios->dmi.anchor, DMITAG) &&
smbios->dmi.anchor[4]==DMITAG[4] &&
checksum8(smbios, sizeof(struct SMBEntryPoint)) == 0)
{
{
return smbios;
}
smbios = (struct SMBEntryPoint*) ( ((char*) smbios) + 16 );
branches/meklort/i386/libsaio/fake_efi.c
1818
1919
2020
21
22
23
24
2125
2226
2327
......
462466
463467
464468
465
469
466470
467471
468
469472
470473
471474
......
654657
655658
656659
657
660
658661
659662
660663
#include "sl.h"
#include "modules.h"
#ifdef static
#undef static
#endif
extern struct SMBEntryPoint * getSmbios(int which); // now cached
extern void setup_pci_devs(pci_dt_t *pci_dt);
/*
* Get the SystemID from the bios dmi info
*/
static EFI_CHAR8 uuid[UUID_LEN];
staticEFI_CHAR8* getSmbiosUUID()
{
static EFI_CHAR8 uuid[UUID_LEN];
int i, isZero, isOnes;
struct SMBEntryPoint*smbios;
SMBByte*p;
{
verbose("No SMBIOS replacement found.\n");
}
// get a chance to scan mem dynamically if user asks for it while having the config options loaded as well,
// as opposed to when it was in scan_platform(); also load the orig. smbios so that we can access dmi info without
// patching the smbios yet
branches/meklort/i386/boot2/modules.h
1111
1212
1313
14
14
1515
1616
1717
// There is a bug with the module system / rebasing / binding
// that causes static variables to be incorrectly rebased or bound
// Disable static variables for the moment
#define static
// #define static
#ifndef __BOOT_MODULES_H
#define __BOOT_MODULES_H
branches/meklort/i386/modules/ACPIPatcher/ACPIPatcher.c
2020
2121
2222
23
23
2424
2525
2626
void ACPIPatcher_start()
{
replace_function("getPciRootUID", &ACPIPatcher_getPciRootUID);
replace_function("_getPciRootUID", &ACPIPatcher_getPciRootUID);
register_hook_callback("setupEfiConfigurationTable", &ACPIPatcher_setupEfiConfigurationTable_hook);
}
branches/meklort/i386/modules/GUI/gui.h
1818
1919
2020
21
2122
2223
2324
#ifndef __BOOT2_GUI_H
#define __BOOT2_GUI_H
void showTextBuffer(char *buf, int size);
int GUI_initGraphicsMode ();
int GUI_countdown( const char * msg, int row, int timeout );
#define CHARACTERS_COUNT223

Archive Download the corresponding diff file

Revision: 537