Skip to content

Commit 5f5428c

Browse files
committed
dont double usbownership made by clover
Signed-off-by: Slice <sergey.slice@gmail.com>
1 parent 8865f87 commit 5f5428c

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Library/OcMainLib/OpenCoreUefi.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,7 @@ OcExitBootServicesHandler (
337337
IN VOID *Context
338338
)
339339
{
340+
#ifndef CLOVER_BUILD
340341
EFI_STATUS Status;
341342
OC_GLOBAL_CONFIG *Config;
342343

@@ -346,7 +347,7 @@ OcExitBootServicesHandler (
346347

347348
MemoryAttributesTable = OcGetMemoryAttributes (NULL);
348349
UINTN nb = MemoryAttributesTable->NumberOfEntries;
349-
350+
//gST->NumberOfTableEntries
350351

351352
if ( nb >= 120 ) {
352353
DEBUG ((DEBUG_INFO, "MemoryMap is probably too big for XNU to start (%lld entries) - trying anyway\n", nb));
@@ -377,6 +378,7 @@ OcExitBootServicesHandler (
377378
if (Config->Uefi.Quirks.ExitBootServicesDelay > 0) {
378379
gBS->Stall (Config->Uefi.Quirks.ExitBootServicesDelay);
379380
}
381+
#endif
380382
}
381383

382384
STATIC

0 commit comments

Comments
 (0)