Chameleon

Chameleon Commit Details

Date:2017-03-25 12:42:00 (7 years 1 month ago)
Author:ErmaC
Commit:2867
Parents: 2866
Message:Update newFilteredBVChain (Micky1979)
Changes:
M/branches/ErmaC/Enoch/i386/libsaio/saio_internal.h
M/branches/ErmaC/Enoch/i386/boot2/boot.c
M/branches/ErmaC/Enoch/i386/libsaio/disk.c

File differences

branches/ErmaC/Enoch/i386/libsaio/disk.c
22072207
22082208
22092209
2210
2210
22112211
22122212
22132213
......
22202220
22212221
22222222
2223
2223
22242224
22252225
22262226
}
//==============================================================================
BVRef newFilteredBVChain(int minBIOSDev, int maxBIOSDev, unsigned int allowFlags, unsigned int denyFlags, int *count)
BVRef newFilteredBVChain(int minBIOSDev, int maxBIOSDev, unsigned int allowFlags, unsigned int denyFlags, int *count, bool sch)
{
BVRef chain = NULL;
BVRef bvr = NULL;
const char *raw = 0;
char* val = 0;
int len;
getValueForKey(kHidePartition, &raw, &len, &bootInfo->chameleonConfig);
if(raw)
{
branches/ErmaC/Enoch/i386/libsaio/saio_internal.h
112112
113113
114114
115
115
116116
117117
118118
extern int diskIsCDROM(BVRef bvr);
extern int biosDevIsCDROM(int biosdev);
extern BVRef getBVChainForBIOSDev(int biosdev);
extern BVRef newFilteredBVChain(int minBIOSDev, int maxBIOSDev, unsigned int allowFlags, unsigned int denyFlags, int *count);
extern BVRef newFilteredBVChain(int minBIOSDev, int maxBIOSDev, unsigned int allowFlags, unsigned int denyFlags, int *count, bool sch);
extern int freeFilteredBVChain(const BVRef chain);
extern int rawDiskRead(BVRef bvr, unsigned int secno, void *buffer, unsigned int len);
extern int rawDiskWrite(BVRef bvr, unsigned int secno, void *buffer, unsigned int len);
branches/ErmaC/Enoch/i386/boot2/boot.c
699699
700700
701701
702
702
703703
704704
705705
......
764764
765765
766766
767
767
768768
769769
770770
}
// Create a separated bvr chain using the specified filters.
bvChain = newFilteredBVChain(0x80, 0xFF, allowBVFlags, denyBVFlags, &gDeviceCount);
bvChain = newFilteredBVChain(0x80, 0xFF, allowBVFlags, denyBVFlags, &gDeviceCount, false);
gBootVolume = selectBootVolume(bvChain);
rescanBIOSDevice(gBIOSDev);
}
bvChain = newFilteredBVChain(0x80, 0xFF, allowBVFlags, denyBVFlags, &gDeviceCount);
bvChain = newFilteredBVChain(0x80, 0xFF, allowBVFlags, denyBVFlags, &gDeviceCount, false);
setBootGlobals(bvChain);
setupDeviceList(&bootInfo->themeConfig);
}

Archive Download the corresponding diff file

Revision: 2867