Chameleon

Chameleon Commit Details

Date:2014-10-21 17:53:30 (9 years 4 months ago)
Author:ErmaC
Commit:2427
Parents: 2426
Message:Define macros for OS versions
Changes:
M/trunk/i386/boot2/boot.c
M/trunk/i386/boot2/boot.h
M/trunk/CHANGES

File differences

trunk/i386/boot2/boot.c
209209
210210
211211
212
212
213213
214214
215215
......
254254
255255
256256
257
257
258258
259259
260260
261261
262
262
263263
264264
265265
finalizeBootStruct();
// Jump to kernel's entry point. There's no going back now.
if ((checkOSVersion("10.7")) || (checkOSVersion("10.8")) || (checkOSVersion("10.9")))
if ( LION || MOUNTAIN_LION || MAVERICKS )
{
// Notify modules that the kernel is about to be started
verbose("Specified kernel cache file path = %s\n", cacheFile);
} else {
// Lion, Mountain Lion and Mavericks prelink kernel cache file
if ((checkOSVersion("10.7")) || (checkOSVersion("10.8")) || (checkOSVersion("10.9")))
if ( LION || MOUNTAIN_LION || MAVERICKS )
{
snprintf(kernelCacheFile, sizeof(kernelCacheFile), "%skernelcache", kDefaultCachePathSnow);
verbose("10.7, 10.8 & 10.9 kernel cache file path = %s\n", kernelCacheFile);}
// Snow Leopard prelink kernel cache file
else if (checkOSVersion("10.6")) {
else if ( SNOW_LEOPARD ) {
snprintf(kernelCacheFile, sizeof(kernelCacheFile), "kernelcache_%s",
(archCpuType == CPU_TYPE_I386) ? "i386" : "x86_64");
trunk/i386/boot2/boot.h
2828
2929
3030
31
32
33
34
35
36
37
38
39
40
3141
3242
3343
#define __BOOT2_BOOT_H
#include "libsaio.h"
// OS X Versions
#define MAVERICKS checkOSVersion("10.9") // Mavericks
#define MOUNTAIN_LION checkOSVersion("10.8") // Mountain Lion
#define LION checkOSVersion("10.7") // Lion
#define SNOW_LEOPARD checkOSVersion("10.6") // Snow Leopard
#define LEOPARD checkOSVersion("10.5") // Leopard
#define TIGER checkOSVersion("10.4") // Tiger
/*
* Paths used by chameleon
*/
trunk/CHANGES
1
12
23
34
- ErmaC : define macro for OS X Versions
- Slice and Clover Team : Replace "NULL" terminated strings and fit Boot2 Sectors size
- ErmaC : Update bootargs
- crazybirdy : Fit length for "Loading Darwin"

Archive Download the corresponding diff file

Revision: 2427