MCPcopy Create free account
hub / github.com/CloverHackyColor/CloverBootloader / FIXDarwin

Function FIXDarwin

rEFIt_UEFI/Platform/FixBiosDsdt.cpp:1883–1894  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1881}
1882
1883UINT32 FIXDarwin (UINT8* dsdt, UINT32 len)
1884{
1885 CONST UINT32 adr = 0x24;
1886 DBG("Start Darwin Fix\n");
1887 ReplaceName(dsdt, len, "_OSI", "OOSI");
1888 if (gSettings.FixDsdt & FIX_DARWIN) {
1889 darwin[42] = '9'; //windows 2009
1890 }
1891 len = move_data(adr, dsdt, len, sizeof(darwin));
1892 CopyMem(dsdt+adr, darwin, sizeof(darwin));
1893 return len;
1894}
1895
1896VOID FixS3D (UINT8* dsdt, UINT32 len)
1897{

Callers 1

FixBiosDsdtFunction · 0.85

Calls 3

ReplaceNameFunction · 0.85
move_dataFunction · 0.85
CopyMemFunction · 0.50

Tested by

no test coverage detected