Chameleon

Chameleon Svn Source Tree

Root/branches/meklort/i386/boot2/kernel_patcher.h

Source at commit 143 created 10 years 8 months ago.
By meklort, Updated kernel patcher. Removed CPUID panic as well as removes the need for SleepEnabler.kext
1/*
2 * Copyright (c) 2009 Evan Lojewski. All rights reserved.
3 *
4 */
5
6#include <mach-o/loader.h>
7#include <mach-o/nlist.h>
8
9#ifndef __BOOT2_KERNEL_PATCHER_H
10#define __BOOT2_KERNEL_PATCHER_H
11
12void patch_kernel();
13
14#define KERNEL_641
15#define KERNEL_322
16
17int locate_symbols(void* kernelData);
18
19
20void patch_kernel_32(void* kernelData);
21void patch_kernel_64(void* kernelData);
22
23
24
25void patch_cpuid_set_info(void* kernelData);
26void patch_pmCPUExitHaltToOff(void* kernelData);
27
28#endif /* !__BOOT2_KERNEL_PATCHER_H */
29

Archive Download this file

Revision: 143