Chameleon

Chameleon Svn Source Tree

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

Source at commit 145 created 4 years 3 months ago.
By meklort, Kernel patcher works now (patched the kernel too late before)
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(void* kernelData);
13
14#define KERNEL_641
15#define KERNEL_322
16
17int locate_symbols(void* kernelData);
18
19void patch_kernel_32(void* kernelData);
20void patch_kernel_64(void* kernelData);
21
22
23
24void patch_cpuid_set_info(void* kernelData);
25void patch_pmCPUExitHaltToOff(void* kernelData);
26
27#endif /* !__BOOT2_KERNEL_PATCHER_H */
28

Archive Download this file

Revision: 145