Chameleon

Chameleon Commit Details

Date:2010-09-27 16:06:13 (13 years 6 months ago)
Author:Evan Lojewski
Commit:564
Parents: 563
Message:Removed warnings.
Changes:
M/branches/meklort/i386/modules/Networking/Networking.c
M/branches/meklort/i386/boot2/boot.c
M/branches/meklort/i386/modules/Memory/Memory.c
M/branches/meklort/i386/modules/USBFix/USBFix.c
M/branches/meklort/i386/modules/GraphicsEnabler/GraphicsEnabler.c
M/branches/meklort/i386/modules/KextPatcher/kext_patcher.c

File differences

branches/meklort/i386/boot2/boot.c
193193
194194
195195
196
196197
197
198
198199
199200
200201
{
setVideoMode( GRAPHICS_MODE, 0 );
// Draw gray screen. NOTE: no boot image, that's in the gui module
#ifndef OPTION_ROM
if(!gVerboseMode) drawColorRectangle(0, 0, DEFAULT_SCREEN_WIDTH, DEFAULT_SCREEN_HEIGHT, 0x01);
#endif
}
branches/meklort/i386/modules/USBFix/USBFix.c
1010
1111
1212
13
13
1414
15
1516
1617
1718
int usb_loop();
void notify_usb_dev(pci_dt_t *pci_dev);
void USBFix_pci_hook(pci_dt_t* current, void* arg2, void* arg3, void* arg4)
void USBFix_pci_hook(void* arg1, void* arg2, void* arg3, void* arg4)
{
pci_dt_t* current = arg1;
if(current->class_id == PCI_CLASS_SERIAL_USB)
{
notify_usb_dev(current);
branches/meklort/i386/modules/KextPatcher/kext_patcher.c
1616
1717
1818
19
19
2020
2121
2222
......
4242
4343
4444
45
46
4547
46
47
48
49
50
51
4852
53
4954
5055
5156
......
5762
5863
5964
65
6066
6167
6268
69
6370
6471
65
72
6673
67
74
6875
#include "modules.h"
void KextPatcher_hook(pci_dt_t* current, void* arg2, void* arg3, void* arg4);
void KextPatcher_hook(void* current, void* arg2, void* arg3, void* arg4);
/**
** KextPatcher_start -> module start
**/
void kext_loaded(void* moduletmp, void* lengthprt, void* executableAddr, void* arg3)
{
/*
ModulePtr module = moduletmp;
long length = *(long*)lengthprt;
ModulePtr module = moduletmp;
printf("Loading %s, lenght is %d\n", module->plistAddr, length);
//long length2 = strlen(module->plistAddr);
// *(long*)lengthprt = length2 + 5 * 1024 * 1024;
printf("Loading %s, lenght is %d (%d), executable is 0x%X\n", module->plistAddr, length, length2, executableAddr);
getc();
*/
}
/**
void mkext_loaded(void* filespec, void* packagetmp, void* length, void* arg3)
{
/*
DriversPackage * package = packagetmp;
printf("Loading %s, length %d\n", filespec, length);
getc();
*/
}
void KextPatcher_hook(pci_dt_t* current, void* arg2, void* arg3, void* arg4)
void KextPatcher_hook(void* arg1, void* arg2, void* arg3, void* arg4)
{
// Lets do some patching.
//pci_dt_t* current = arg1;
}
branches/meklort/i386/modules/Networking/Networking.c
129129
130130
131131
132
133132
134133
135134
void set_wifi_airport(pci_dt_t *wlan_dev)
{
char tmp[16];
uint32_t temp2;
char *devicepath = get_pci_dev_path(wlan_dev);
struct DevPropDevice *device = (struct DevPropDevice*)malloc(sizeof(struct DevPropDevice));
branches/meklort/i386/modules/Memory/Memory.c
1010
1111
1212
13
1314
1415
1516
#include "platform.h"
#include "dram_controllers.h"
#include "spd.h"
#include "mem.h"
#include "boot.h"
#include "bootstruct.h"
#include "modules.h"
branches/meklort/i386/modules/GraphicsEnabler/GraphicsEnabler.c
1717
1818
1919
20
20
2121
2222
2323
......
2525
2626
2727
28
28
2929
30
3031
3132
3233
#define kGraphicsEnabler"GraphicsEnabler"
void GraphicsEnabler_hook(pci_dt_t* current, void* arg2, void* arg3, void* arg4);
void GraphicsEnabler_hook(void* arg1, void* arg2, void* arg3, void* arg4);
void GraphicsEnabler_start()
{
}
void GraphicsEnabler_hook(pci_dt_t* current, void* arg2, void* arg3, void* arg4)
void GraphicsEnabler_hook(void* arg1, void* arg2, void* arg3, void* arg4)
{
pci_dt_t* current = arg1;
if(current && current->class_id == PCI_CLASS_DISPLAY_VGA)
{
char *devicepath = get_pci_dev_path(current);

Archive Download the corresponding diff file

Revision: 564