Chameleon

Chameleon Commit Details

Date:2016-05-16 17:14:34 (7 years 11 months ago)
Author:zenith432
Commit:2815
Parents: 2814
Message:fix kernel path and print CsrActiveConfig to bdmesg
Changes:
M/trunk/i386/boot2/boot.c

File differences

trunk/i386/boot2/boot.c
189189
190190
191191
192
192
193193
194194
195195
......
208208
209209
210210
211
211
212212
213
213
214214
215215
216216
217217
218218
219219
220
220221
221222
222223
......
862863
863864
864865
865
866
866867
867868
868869
if ( MacOSVerCurrent >= MacOSVer2Int("10.11") ) // El Capitan and Up!
{
// ErmaC
intcrsValue;
intcsrValue;
#if 0
/*
bootArgs->flags|= kBootArgsFlagCSRActiveConfig;
// Set limit to 7bit
if ( getIntForKey(KCsrActiveConfig, &crsValue, &bootInfo->chameleonConfig) && (crsValue >= 0 && crsValue <= 127) )
if ( getIntForKey(KCsrActiveConfig, &csrValue, &bootInfo->chameleonConfig) && (csrValue >= 0 && csrValue <= 127) )
{
bootArgs->csrActiveConfig= crsValue;
bootArgs->csrActiveConfig= csrValue;
}
else
{
// zenith432
bootArgs->csrActiveConfig= 0x67;
}
verbose("CsrActiveConfig set to 0x%x\n", bootArgs->csrActiveConfig);
bootArgs->csrCapabilities= CSR_VALID_FLAGS;
bootArgs->boot_SMC_plimit= 0;
}
// bootFile must start with a / if it not start with a device name
if (!bootFileWithDevice && (bootInfo->bootFile)[0] != '/')
{
if ( !YOSEMITE || !ELCAPITAN ) //Is not Yosemite 10.10 or El Capitan 10.11
if ( !YOSEMITE && !ELCAPITAN ) //Is not Yosemite 10.10 or El Capitan 10.11
{
snprintf(bootFile, sizeof(bootFile), "/%s", bootInfo->bootFile); // append a leading /
}

Archive Download the corresponding diff file

Revision: 2815