Skip to content

Commit

Permalink
OcAfterBootCompatLib: Increased slide allocation reserve to 200 MB
Browse files Browse the repository at this point in the history
This is required for Big Sur b10, which kernel cache is much larger.
  • Loading branch information
vit9696 committed Oct 15, 2020
1 parent aa1e926 commit c8bf19d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions Changelog.md
Expand Up @@ -11,6 +11,7 @@ OpenCore Changelog
- Fixed incorrect core/thread counts on Pentium M processors
- Added `SSDT-UNC.dsl` ACPI sample to resolve X99 issues, thx @RemB
- Updated builtin firmware versions for SMBIOS and the rest
- Increased slide allocation reserve to 200 MB for Big Sur beta 10

#### v0.6.2
- Updated builtin firmware versions for SMBIOS and the rest
Expand Down
5 changes: 4 additions & 1 deletion Library/OcAfterBootCompatLib/BootCompatInternal.h
Expand Up @@ -97,8 +97,11 @@

/**
Assume the kernel is roughly 128 MBs.
And the recovery introduced with Big Sur has roughly 200 MBs.
See 11.0b10 EB.MM.AKMR function (EfiBoot.MemoryMap.AllocateKernelMemoryRecovery),
it has 0xC119 pages requested. This value is likely calculated from KC size.
**/
#define ESTIMATED_KERNEL_SIZE ((UINTN) SIZE_128MB)
#define ESTIMATED_KERNEL_SIZE ((UINTN) (200 * SIZE_1MB))

/**
Preserved relocation entry.
Expand Down

0 comments on commit c8bf19d

Please sign in to comment.