Chameleon

Chameleon Commit Details

Date:2015-09-11 03:15:20 (8 years 7 months ago)
Author:ErmaC
Commit:2758
Parents: 2757
Message:Typo and white space.
Changes:
M/branches/ErmaC/Enoch/i386/libsaio/saio_internal.h
M/branches/ErmaC/Enoch/i386/libsaio/bootstruct.h
M/branches/ErmaC/Enoch/i386/boot2/options.c
M/branches/ErmaC/Enoch/i386/libsaio/stringTable.c
M/branches/ErmaC/Enoch/i386/modules/Resolution/edid.c
M/branches/ErmaC/Enoch/package/OptionalSettings/KernelFlags.txt
M/branches/ErmaC/Enoch/i386/boot2/drivers.c
M/branches/ErmaC/Enoch/i386/libsaio/saio_types.h
M/branches/ErmaC/Enoch/i386/boot2/boot.c
M/branches/ErmaC/Enoch/i386/libsaio/fake_efi.c
M/branches/ErmaC/Enoch/i386/libsaio/platform.h
M/branches/ErmaC/Enoch/i386/libsaio/disk.c
M/branches/ErmaC/Enoch/i386/boot2/boot.h
M/branches/ErmaC/Enoch/i386/libsaio/device_inject.c

File differences

branches/ErmaC/Enoch/i386/libsaio/bootstruct.h
3333
3434
3535
36
37
38
36
37
38
3939
4040
4141
/*
* Kernel boot args global also used by booter for its own data.
*/
extern boot_args*bootArgs;
extern boot_args_legacy*bootArgsLegacy;
extern Node *gMemoryMapNode;
extern boot_args*bootArgs;
extern boot_args_legacy*bootArgsLegacy;
extern Node*gMemoryMapNode;
#define VGA_TEXT_MODE 0
//defined in /usr/../boot.h
branches/ErmaC/Enoch/i386/libsaio/device_inject.c
5858
5959
6060
61
61
6262
6363
6464
......
231231
232232
233233
234
234
235235
236236
237237
......
291291
292292
293293
294
295
294
295
296296
297297
298298
*/
if (!getValueForKey(kDeviceProperties, &val, &cnt, &bootInfo->chameleonConfig) && string)
{
val = (const char*)string;
val = (const char *)string;
cnt = strlength * 2;
}
memset(data, 0, length);
uint32_t off = 0;
data[off+1] = ((strlen(nm) * 2) + 6) >> 8;
data[off+1] = (uint8_t)(((strlen(nm) * 2) + 6) >> 8);
data[off] = ((strlen(nm) * 2) + 6) & 0x00FF;
off += 4;
// devprop_generate_string optimized by cparm
char *devprop_generate_string(DevPropString *string)
{
int len = string->length * 2 + 1;
char *buffer = (char*)malloc(len);
int len = ((string->length * 2) + 1);
char *buffer = (char *)malloc(len);
char *ptr = buffer;
if(!buffer)
branches/ErmaC/Enoch/i386/libsaio/platform.h
424424
425425
426426
427
427428
428429
429430
intMemoryModules;// number of memory modules installed
intDIMM[MAX_RAM_SLOTS];// Information and SPD mapping for each slot
} DMI;
struct RAM
{
uint64_tFrequency;// Ram Frequency
branches/ErmaC/Enoch/i386/libsaio/disk.c
103103
104104
105105
106
107106
108107
109108
110109
111110
111
112112
113113
114114
......
141141
142142
143143
144
144145
145146
146147
......
152153
153154
154155
156
155157
156158
157159
......
180182
181183
182184
183
184185
185186
186
187
187
188188
189189
190190
......
231231
232232
233233
234
235
234
236235
237236
238237
......
249248
250249
251250
252
253
251
254252
255253
256254
......
393391
394392
395393
396
397394
398395
399396
400397
401398
402399
403
404
400
405401
406402
407403
......
438434
439435
440436
441
442437
443438
444439
......
461456
462457
463458
464
465459
466460
467461
......
552546
553547
554548
555
556549
557550
558551
......
646639
647640
648641
649
650642
651643
652644
......
743735
744736
745737
746
747738
748739
749740
......
943934
944935
945936
946
947937
948938
949939
......
12521242
12531243
12541244
1255
1256
1245
12571246
12581247
12591248
......
13761365
13771366
13781367
1379
13801368
13811369
13821370
......
13861374
13871375
13881376
1389
1390
1377
13911378
13921379
13931380
......
17081695
17091696
17101697
1711
17121698
17131699
1714
1700
17151701
17161702
17171703
......
18351821
18361822
18371823
1838
18391824
18401825
18411826
......
19011886
19021887
19031888
1904
19051889
19061890
19071891
......
19171901
19181902
19191903
1920
19211904
19221905
19231906
......
19511934
19521935
19531936
1954
19551937
19561938
19571939
......
19691951
19701952
19711953
1972
1973
1954
19741955
19751956
19761957
......
20192000
20202001
20212002
2022
20232003
20242004
20252005
......
20382018
20392019
20402020
2041
20422021
20432022
20442023
......
21642143
21652144
21662145
2167
21682146
21692147
21702148
......
21972175
21982176
21992177
2200
2201
2178
22022179
22032180
22042181
......
22422219
22432220
22442221
2245
22462222
22472223
22482224
22492225
22502226
2251
2227
22522228
22532229
22542230
......
23022278
23032279
23042280
2305
23062281
23072282
23082283
......
23752350
23762351
23772352
2378
23792353
2380
23812354
23822355
23832356
......
24082381
24092382
24102383
2411
24122384
24132385
24142386
2415
24162387
24172388
24182389
......
24532424
24542425
24552426
2456
24572427
24582428
2459
24602429
24612430
24622431
24632432
24642433
24652434
2466
24672435
24682436
2469
24702437
24712438
24722439
24732440
24742441
24752442
2476
24772443
24782444
24792445
......
25212487
25222488
25232489
2524
25252490
25262491
25272492
......
25662531
25672532
25682533
2569
25702534
25712535
25722536
......
25792543
25802544
25812545
2582
25832546
25842547
25852548
//==========================================================================
// Maps (E)BIOS return codes to message strings.
struct NamedValue {
unsigned char value;
const char *name;
};
// =========================================================================
/*
* Map a disk drive to bootable volumes contained within.
*/
static bool getOSVersion(BVRef bvr, char *str);
static bool cache_valid = false;
// =============================================================================
static const struct NamedValue bios_errors[] =
{
{ 0x10, "Media error" },
{ 0x00, NULL }
};
// =============================================================================
static const struct NamedValue fdiskTypes[] =
{
{ FDISK_DOS12,"DOS_FAT_12" }, // 0x01
};
//==============================================================================
extern void spinActivityIndicator(int sectors);
//==========================================================================
//==============================================================================
static int getDriveInfo( int biosdev, struct driveInfo *dip )
{
static struct driveInfo cached_di;
return 0;
}
//==========================================================================
//==============================================================================
static const char *getNameForValue( const struct NamedValue *nameTable, unsigned char value )
{
const struct NamedValue *np;
}
//==============================================================================
static const char * bios_error(int errnum)
static const char *bios_error(int errnum)
{
static char errorstr[] = "Error 0x00";
const char * errname;
}
//==============================================================================
int testBiosread(int biosdev, unsigned long long secno)
{
return Biosread(biosdev, secno);
}
//==============================================================================
static int readBytes(int biosdev, unsigned long long blkno, unsigned int byteoff, unsigned int byteCount, void * buffer)
static int readBytes(int biosdev, unsigned long long blkno, unsigned int byteoff, unsigned int byteCount, void *buffer)
{
// ramdisks require completely different code for reading.
if(p_ramdiskReadBytes != NULL && biosdev >= 0x100)
}
//==============================================================================
static int isExtendedFDiskPartition( const struct fdisk_part *part )
{
static unsigned char extParts[] =
}
//==============================================================================
static int getNextFDiskPartition( int biosdev, int *partno, const struct fdisk_part **outPart )
{
static int sBiosdev = -1;
}
//==============================================================================
/*
* Trying to figure out the filsystem type of a given partition.
* X = fdisk partition type
}
//==============================================================================
static BVRef newFDiskBVRef( int biosdev,
int partno,
unsigned int blkoff,
}
//==============================================================================
static BVRef newAPMBVRef( int biosdev, int partno, unsigned int blkoff,
const DPME * part,
FSInit initFunc, FSLoadFile loadFunc,
* So, for example, if you have two primary partitions and
* one extended partition they will be numbered 1, 2, 5.
*/
static BVRef diskScanFDiskBootVolumes( int biosdev, int *countPtr )
{
const struct fdisk_part*part;
}
//==============================================================================
static BVRef diskScanAPMBootVolumes( int biosdev, int * countPtr )
static BVRef diskScanAPMBootVolumes( int biosdev, int *countPtr )
{
struct DiskBVMap*map;
struct Block0*block0_p;
}
//==============================================================================
static bool isPartitionUsed(gpt_ent * partition)
{
}
//==============================================================================
static BVRef diskScanGPTBootVolumes(int biosdev, int * countPtr)
static BVRef diskScanGPTBootVolumes(int biosdev, int *countPtr)
{
verbose("\tAttempting to scan GPT boot volumes [biosdev=%02Xh]:\n", biosdev);
}
//==============================================================================
static bool getOSVersion(BVRef bvr, char *str)
{
bool valid = false;
bool valid = false;
config_file_t systemVersion;
char dirSpec[512];
}
//==============================================================================
static void scanFSLevelBVRSettings(BVRef chain)
{
BVRef bvr;
}
//==============================================================================
void rescanBIOSDevice(int biosdev)
{
struct DiskBVMap *oldMap = diskResetBootVolumes(biosdev);
}
//==============================================================================
struct DiskBVMap* diskResetBootVolumes(int biosdev)
{
struct DiskBVMap * map;
}
//==============================================================================
// Frees a DiskBVMap and all of its BootVolume's
void diskFreeMap(struct DiskBVMap *map)
{
}
//==============================================================================
BVRef diskScanBootVolumes(int biosdev, int * countPtr)
BVRef diskScanBootVolumes(int biosdev, int *countPtr)
{
struct DiskBVMap *map;
BVRef bvr;
}
//==============================================================================
BVRef getBVChainForBIOSDev(int biosdev)
{
BVRef chain = NULL;
}
//==============================================================================
BVRef newFilteredBVChain(int minBIOSDev, int maxBIOSDev, unsigned int allowFlags, unsigned int denyFlags, int *count)
{
BVRef chain = NULL;
}
//==============================================================================
int freeFilteredBVChain(const BVRef chain)
{
int ret = 1;
}
//==============================================================================
bool matchVolumeToString( BVRef bvr, const char* match, long matchLen)
bool matchVolumeToString( BVRef bvr, const char *match, long matchLen)
{
char testStr[128];
}
//==============================================================================
/* If Rename Partition has defined an alias, then extract it for description purpose.
* The format for the rename string is the following:
* hd(x,y)|uuid|"label" "alias";hd(m,n)|uuid|"label" "alias"; etc...
*/
static bool getVolumeLabelAlias(BVRef bvr, char* str, long strMaxLen)
static bool getVolumeLabelAlias(BVRef bvr, char *str, long strMaxLen)
{
char *aliasList, *entryStart, *entryNext;
}
//==============================================================================
void getBootVolumeDescription( BVRef bvr, char *str, long strMaxLen, bool useDeviceDescription )
{
unsigned char type;
strncpy(bvr->label, p, sizeof(bvr->label) );
}
//==============================================================================
int readBootSector(int biosdev, unsigned int secno, void *buffer)
{
int error;
}
//==============================================================================
/*
* Format of boot1f32 block.
*/
#define BOOT1F32_MAGIC "BOOT "
#define BOOT1F32_MAGICLEN 11
return 0;
}
//==============================================================================
// Handle seek request from filesystem modules.
void diskSeek(BVRef bvr, long long position)
{
bvr->fs_boff = position / BPS;
bvr->fs_byteoff = position % BPS;
}
//==============================================================================
// Handle read request from filesystem modules.
int diskRead(BVRef bvr, long addr, long length)
{
return readBytes(bvr->biosdev, bvr->fs_boff + bvr->part_boff, bvr->fs_byteoff, length, (void *) addr);
}
//==============================================================================
int rawDiskRead( BVRef bvr, unsigned int secno, void *buffer, unsigned int len )
{
int secs;
}
//==============================================================================
int rawDiskWrite( BVRef bvr, unsigned int secno, void *buffer, unsigned int len )
{
int secs;
}
//==============================================================================
int diskIsCDROM(BVRef bvr)
{
struct driveInfo di;
}
//==============================================================================
int biosDevIsCDROM(int biosdev)
{
struct driveInfo di;
branches/ErmaC/Enoch/i386/libsaio/stringTable.c
4141
4242
4343
44
45
44
4645
4746
4847
......
9089
9190
9291
93
94
95
92
9693
9794
9895
......
266263
267264
268265
269
270
266
271267
272268
273269
......
291287
292288
293289
294
295290
296291
297292
......
426421
427422
428423
429
430424
431425
432426
......
496490
497491
498492
499
500493
501494
502495
......
559552
560553
561554
562
563555
564
565
556
566557
567558
568559
......
645636
646637
647638
648
639
649640
650641
651642
......
662653
663654
664655
665
666656
667657
668658
......
897887
898888
899889
900
890
901891
902892
903893
......
912902
913903
914904
915
905
916906
917907
918908
/*
* Compare a string to a key with quoted characters
*/
static inline int
keyncmp(const char *str, const char *key, int n)
static inline int keyncmp(const char *str, const char *key, int n)
{
int c;
while (n--) {
}
/* Remove key and its associated value from the table. */
bool
removeKeyFromTable(const char *key, char *table)
bool removeKeyFromTable(const char *key, char *table)
{
register int len;
register char *tab;
#endif
char *
newStringForKey(char *key, config_file_t *config)
char *newStringForKey(char *key, config_file_t *config)
{
const char *val;
char *newstr;
* both <option> and <value> must be either composed of
* non-whitespace characters, or enclosed in quotes.
*/
static const char *getToken(const char *line, const char **begin, int *len)
{
if (*line == '\"') {
/*
*
*/
bool getDimensionForKey( const char *key, unsigned int *value, config_file_t *config, unsigned int dimension_max, unsigned int object_size )
{
const char *val;
/*
*get color value from plist format #RRGGBB
*/
bool getColorForKey( const char *key, unsigned int *value, config_file_t *config )
{
const char *val;
return ret;
}
#if UNUSED
void
printSystemConfig(char *p1)
void printSystemConfig(char *p1)
{
char *p2 = p1, tmp;
* Returns 0 - successful.
* -1 - unsuccesful.
*/
int loadConfigFile (const char *configFile, config_file_t *config)
int loadConfigFile(const char *configFile, config_file_t *config)
{
int fd, count;
return 0;
}
/* loadSystemConfig
*
* Returns 0 - successful.
return ret;
}
char * newString(const char * oldString)
char *newString(const char *oldString)
{
if ( oldString )
{
/*
* Extracts the next argument from the command line, double quotes are allowed here.
*/
char * getNextArg(char ** argPtr, char * val)
char *getNextArg(char **argPtr, char *val)
{
char * ptr = *argPtr;
const char * strStart;
branches/ErmaC/Enoch/i386/libsaio/saio_types.h
149149
150150
151151
152
152
153153
154154
155
156
157
155
156
157
158158
159159
160160
typedef structBootVolume *CICell;
typedef long (*FSInit)(CICell ih);
typedef long (*FSLoadFile)(CICell ih, char * filePath);
typedef long (*FSLoadFile)(CICell ih, char *filePath);
typedef long (*FSReadFile)(CICell ih, char *filePath, void *base, uint64_t offset, uint64_t length);
typedef long (*FSGetFileBlock)(CICell ih, char *filePath, unsigned long long *firstBlock);
typedef long (*FSGetDirEntry)(CICell ih, char * dirPath, long long * dirIndex,
char ** name, long * flags, u_int32_t * time,
FinderInfo * finderInfo, long * infoValid);
typedef long (*FSGetDirEntry)(CICell ih, char * dirPath, long long *dirIndex,
char **name, long * flags, u_int32_t *time,
FinderInfo *finderInfo, long *infoValid);
typedef long (*FSGetUUID)(CICell ih, char *uuidStr);
typedef void (*BVGetDescription)(CICell ih, char * str, long strMaxLen);
// Can be just pointed to free or a special free function
branches/ErmaC/Enoch/i386/libsaio/fake_efi.c
652652
653653
654654
655
656655
657656
658657
/*
* Populate the chosen node
*/
void setupChosenNode()
{
Node *chosenNode;
branches/ErmaC/Enoch/i386/libsaio/saio_internal.h
147147
148148
149149
150
150
151151
152152
153153
154
155
154
155
156156
157157
158
158
159159
160160
161161
......
165165
166166
167167
168
169
168
169
170170
171171
172172
extern BVRef nbpScanBootVolumes(int biosdev, int *count);
/* stringTable.c */
extern char * newStringFromList(char **list, int *size);
extern char *newStringFromList(char **list, int *size);
extern int stringLength(const char *table, int compress);
extern bool getValueForConfigTableKey(config_file_t *config, const char *key, const char **val, int *size);
extern bool removeKeyFromTable(const char *key, char *table);
extern char * newStringForStringTableKey(config_file_t *config, char *key);
extern char * newStringForKey(char *key, config_file_t *configBuff);
extern char *newStringForStringTableKey(config_file_t *config, char *key);
extern char *newStringForKey(char *key, config_file_t *configBuff);
extern bool getValueForBootKey(const char *line, const char *match, const char **matchval, int *len);
extern bool getValueForKey(const char *key, const char **val, int *size, config_file_t *configBuff);
extern const char * getStringForKey(const char * key, config_file_t *config);
extern const char *getStringForKey(const char * key, config_file_t *config);
extern bool getBoolForKey(const char *key, bool *val, config_file_t *configBuff);
extern bool getIntForKey(const char *key, int *val, config_file_t *configBuff);
extern bool getColorForKey(const char *key, unsigned int *val, config_file_t *configBuff);
extern int loadHelperConfig(config_file_t *configBuff);
extern int loadChameleonConfig(config_file_t *configBuff, BVRef chain);
extern int loadChameleonConfigForDevice(config_file_t *configBuff, const char *device, const char *path);
extern char * newString(const char *oldString);
extern char * getNextArg(char **ptr, char *val);
extern char *newString(const char *oldString);
extern char *getNextArg(char **ptr, char *val);
extern intParseXMLFile( char *buffer, TagPtr * dict );
/* sys.c */
branches/ErmaC/Enoch/i386/boot2/drivers.c
119119
120120
121121
122
123
122
124123
125124
126125
......
150149
151150
152151
153
154152
155153
156154
......
169167
170168
171169
172
173170
174171
175172
......
282279
283280
284281
285
286282
287283
288284
......
314310
315311
316312
317
318313
319314
320315
......
396391
397392
398393
399
400394
401395
402
403
396
404397
405398
406399
......
441434
442435
443436
444
445437
446438
447439
......
488480
489481
490482
491
492
493
483
494484
495485
496486
......
643633
644634
645635
646
647636
648637
649
650
651
638
652639
653640
654641
......
683670
684671
685672
686
673
687674
688675
689676
......
743730
744731
745732
746
747
748
733
749734
750735
751736
......
753738
754739
755740
756
757741
758742
759743
......
808792
809793
810794
811
812795
813796
814797
......
838821
839822
840823
841
842824
843825
844826
......
875857
876858
877859
878
860
879861
880862
881863
......
913895
914896
915897
916
898
917899
918900
919901
......
926908
927909
928910
929
911
930912
931913
932914
933915
934
916
935917
936918
937919
938920
939921
940
922
941923
942924
943925
944926
945
927
946928
947929
948930
......
998980
999981
1000982
1001
983
1002984
1003985
1004986
// Bungo:
char gDarwinBuildVerStr[256] = "Darwin Kernel Version";
/*static*/ unsigned long
Adler32( unsigned char *buffer, long length )
/*static*/ unsigned long Adler32( unsigned char *buffer, long length )
{
long cnt;
unsigned long result, lowHalf, highHalf;
//==========================================================================
// InitDriverSupport
static long InitDriverSupport( void )
{
gExtensionsSpec = malloc( 4096 );
//==========================================================================
// LoadDrivers
long LoadDrivers( char * dirSpec )
{
char dirSpecExtra[1024];
//==========================================================================
// FileLoadMKext
static long FileLoadMKext( const char * dirSpec, const char * extDirSpec )
{
longret, flags;
//==========================================================================
// FileLoadDrivers
long FileLoadDrivers( char * dirSpec, long plugin )
{
long longindex;
return result;
}
//==========================================================================
//
long NetLoadDrivers( char * dirSpec )
long NetLoadDrivers( char *dirSpec )
{
long tries;
//==========================================================================
// loadDriverMKext
long LoadDriverMKext( char * fileSpec )
{
unsigned long driversAddr, driversLength;
//==========================================================================
// LoadDriverPList
long
LoadDriverPList( char * dirSpec, char * name, long bundleType )
long LoadDriverPList( char *dirSpec, char *name, long bundleType )
{
long length, executablePathLength, bundlePathLength;
ModulePtr module;
return ret;
}
//==========================================================================
// LoadMatchedModules
long
LoadMatchedModules( void )
long LoadMatchedModules( void )
{
TagPtr prop;
ModulePtr module;
length = 0;
}
if (length != -1)
if ((length != -1) && executableAddr)
{
//driverModuleAddr = (void *)kLoadAddr;
//if (length != 0)
//==========================================================================
// MatchPersonalities
static long
MatchPersonalities( void )
static long MatchPersonalities( void )
{
/* IONameMatch support not implemented */
return 0;
//==========================================================================
// MatchLibraries
static long MatchLibraries( void )
{
TagPtr prop;
return 0;
}
//==========================================================================
// FindModule
//==========================================================================
// ParseXML
static long ParseXML( char *buffer, ModulePtr *module, TagPtr *personalities )
{
longlength;
required = XMLGetProperty(moduleDict, kPropOSBundleRequired);
if ( (required == 0) || (required->type != kTagTypeString) || !strcmp(required->string, "Safe Boot"))
if ( (required == 0) || (required->type != kTagTypeString) || !strncmp(required->string, "Safe Boot", sizeof("Safe Boot")))
{
XMLFreeTag(moduleDict);
return -2;
u_int32_t uncompressed_size = 0, size = 0, adler32 = 0;
void *buffer = NULL;
unsigned long len = 0;
/*#if 0
printf("kernel header:\n");
printf("signature: 0x%x\n", kernel_header->signature);
if (kernel_header->signature == OSSwapBigToHostConstInt32('comp'))
{
DBG("Decompressing Kernel Cache");
DBG("Decompressing Kernel Cache:\n");
if ((kernel_header->compress_type != OSSwapBigToHostConstInt32('lzss')) &&
(kernel_header->compress_type != OSSwapBigToHostConstInt32('lzvn')))
{
error("ERROR: kernel compression is bad!\n");
error("\tERROR: kernel compression is bad!\n");
return -1;
}
if (kernel_header->compress_type == OSSwapBigToHostConstInt32('lzss'))
{
verbose ("Decompressing Kernel Using lzss\n");
verbose ("\t- Decompressing Kernel Using lzss\n");
}
if (kernel_header->compress_type == OSSwapBigToHostConstInt32('lzvn'))
{
verbose ("Decompressing Kernel Using lzvn\n");
verbose ("\t- Decompressing Kernel Using lzvn\n");
}
#if NOTDEF
return -1;
}
DBG("OK.\n");
DBG("\n");
}
ret = ThinFatFile(&binary, &len);
branches/ErmaC/Enoch/i386/boot2/boot.c
22
33
44
5
5
66
77
88
......
1010
1111
1212
13
13
1414
1515
1616
......
1818
1919
2020
21
21
2222
2323
2424
25
25
2626
2727
2828
......
3131
3232
3333
34
35
34
35
3636
3737
3838
......
260260
261261
262262
263
263
264264
265265
266266
......
661661
662662
663663
664
664
665
665666
666667
667668
* Copyright (c) 1999-2003 Apple Computer, Inc. All rights reserved.
*
* @APPLE_LICENSE_HEADER_START@
*
*
* Portions Copyright (c) 1999-2003 Apple Computer, Inc. All Rights
* Reserved. This file contains Original Code and/or Modifications of
* Original Code as defined in and that are subject to the Apple Public
* except in compliance with the License. Please obtain a copy of the
* License at http://www.apple.com/publicsource and read it before using
* this file.
*
*
* The Original Code and all software distributed under the License are
* distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
* EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
* FITNESS FOR A PARTICULAR PURPOSE OR NON- INFRINGEMENT. Please see the
* License for the specific language governing rights and limitations
* under the License.
*
*
* @APPLE_LICENSE_HEADER_END@
*/
/*
/*
* Mach Operating System
* Copyright (c) 1990 Carnegie-Mellon University
* Copyright (c) 1989 Carnegie-Mellon University
*
* INTEL CORPORATION PROPRIETARY INFORMATION
*
* This software is supplied under the terms of a license agreement or
* nondisclosure agreement with Intel Corporation and may not be copied
* This software is supplied under the terms of a license agreement or
* nondisclosure agreement with Intel Corporation and may not be copied
* nor disclosed except in accordance with the terms of that agreement.
*
*Copyright 1988, 1989 by Intel Corporation
charkernelCacheFile[512];
charkernelCachePath[512];
longflags, ret=-1;
unsigned long adler32;
unsigned longadler32 = 0;
u_int32_t time, cachetime, kerneltime, exttime;
if((gBootMode & kBootModeSafe) != 0)
tryresumedefault = false;
}
if (!getBoolForKey (kForceWake, &forceresume, &bootInfo->chameleonConfig)) {
if (!getBoolForKey (kForceWake, &forceresume, &bootInfo->chameleonConfig))
{
forceresume = false;
}
branches/ErmaC/Enoch/i386/boot2/boot.h
186186
187187
188188
189
189
190190
191191
192192
......
254254
255255
256256
257
257
258258
259259
260260
/* cparm: added these keys */
/* ErmaC: added these keys */
#define kEnableDualLink"EnableDualLink"/* ati.c && nvidia.c && gma.c*/
#define kEnableDualLink"EnableDualLink"/* ati.c && nvidia.c && gma.c */
#define kNvidiaGeneric"NvidiaGeneric"/* nvidia.c */
#define kSkipIntelGfx"SkipIntelGfx"/* pci_setup.c */
#define kSkipNvidiaGfx"SkipNvidiaGfx"/* pci_setup.c */
extern void initialize_runtime();
extern void common_boot(int biosdev);
extern bool checkOSVersion(const char * version);
extern bool checkOSVersion(const char *version);
extern uint32_t getMacOSVerCurrent();
/*
branches/ErmaC/Enoch/i386/boot2/options.c
13401340
13411341
13421342
1343
13441343
13451344
13461345
}
else
{
// Load org.chameleon.Boot.plist from the selected volume
// and use its contents to override default bootConfig.
branches/ErmaC/Enoch/i386/modules/Resolution/edid.c
410410
411411
412412
413
413
414414
415415
416416
return ret;
}
int getEDID( void * edidBlock, UInt8 block)
int getEDID( void *edidBlock, UInt8 block)
{
biosBuf_t bb;
bzero(&bb, sizeof(bb));
branches/ErmaC/Enoch/package/OptionalSettings/KernelFlags.txt
3333
3434
3535
36
37
36
37
3838
List@WaitingRootDevice:Kernel Flags=ahcidisk=1 debug=8
List@Darkwake:Kernel Flags=darkwake=0
List@NvdaDrv1:Kernel Flags=nvda_drv=1
List@kext-dev-mode1:Kernel Flags=kext-dev-mode=1
List@rootless0:Kernel Flags=rootless=0
#List@kext-dev-mode1:Kernel Flags=kext-dev-mode=1
#List@rootless0:Kernel Flags=rootless=0
List@Dart0:Kernel Flags=dart=0

Archive Download the corresponding diff file

Revision: 2758