2324 Commits

Author SHA1 Message Date
PMheart
4cc7ac246d OcAppleKernelLib: Fixed AppleXcpmForceBoost on macOS 14 2023-06-05 22:32:13 +02:00
vit9696
ab83b01d01 OcPciIo:ob" Cast to VOID for better future compatibility 2023-06-04 23:49:12 +03:00
Curi0
d84e9bbb27
OcPciIoLib: Add CpuIo/PciRootBridgeIo/PciIo fix for Aptio IV with Above 4G BARs (#459) 2023-06-04 23:05:33 +03:00
Mike Beaton
78cf64df83 OcBootManagementLib: Improve Save/RestoreMode 2023-05-20 00:42:48 +01:00
Mike Beaton
5f2c525cc2 OcConsoleLib: Change out-of-range cursor handling to work round bug(?) in memtest86
- memtest86 does not re-read the text mode size after changing GOP resolution.
 - Possibly this is an issue in OC, in that this should not normally change? (But it is
   fundamental to Builtin renderer handling of console resolution that it will change,
   unless a fixed user mode size is specified.)
 - The only effect of this in memtest86 is that it attempts to place the white footer
   line of its text UI below the bottom of the screen; so this clamping, which seems
   reasonable anyway, completely works round it.
2023-05-18 09:16:01 +01:00
Mike Beaton
3927ee7fe1 OcBootManagementLib: Save and restore text and graphics mode settings round tools and failed entries 2023-05-18 09:16:01 +01:00
Mike Beaton
0df9d12630 OcConsoleLib: Ignore UIScale when required to reach minimum 80x25 text mode size 2023-05-18 09:16:01 +01:00
Mike Beaton
8110c45981 OcBootManagementLib: Improve clipping of overlong menu entries
- Allow full width entries in wide modes
 - Support unusual small modes better, and about as well as possible
2023-05-18 09:16:01 +01:00
Mike Beaton
bc71bbf9ef OcConsoleLib: Add font pages
- Add back original ISO Latin font page 1
 - Add unicode box drawing and block element characters
2023-05-18 09:15:58 +01:00
Mike Beaton
5465c7b820 OcVariableLib: Downgrade additional WARN in expected operation of emulated NVRAM
https://github.com/acidanthera/bugtracker/issues/2206
2023-05-10 22:34:30 +01:00
Marvin Häuser
d9109c36f1 Properly distinguish between PeCoffLib2 vs UefiImageLib 2023-05-08 11:25:08 +02:00
Mike Beaton
1dbf710b8f OcVariableLib: Lower 'Emulated NVRAM load failed' message from WARN to INFO
since it is expected on first boot with new emulated NVRAM
2023-05-07 17:04:58 +01:00
Mike Beaton
5e75fec6d1 OcLog: Allowing positive and negative filtering of unknown log lines, using ? identifier 2023-05-07 16:54:51 +01:00
vit9696
d25ec52b22 OcCpuLib: Fix crash when gathering system report on virtualised CPUs
closes acidanthera/bugtracker#2270
2023-05-07 17:47:06 +03:00
Mike Beaton
47a3da4822 OcLog: Update filtering
- Filter log strings after formatting
 - Never filter WARN and ERROR log lines
 - Fix positive filtering
 - Fix minor issue in valid log prefix algorithm
2023-05-07 14:43:41 +01:00
Mike Beaton
0083a4ef15 OcBootManagementLib: Disable builtin picker timeout on unbootable selection from Apple picker; change from INFO to WARN if cannot start requested Apple picker 2023-05-07 09:25:51 +01:00
PMheart
020645b4a7
OcMainLib/OpenCoreAcpi: Fix orders for RebaseRegions and SyncTableIds (#454)
This fixes regression introduced by f604848c61.
2023-05-06 18:57:27 +02:00
Mike Beaton
301bde5d3d OcConsoleLib: Minor updates
- Remove long-standing unused ConsoleControlInstall method
 - Minor codestyle fix
 - Improve doc wording
2023-05-04 09:59:29 +01:00
Mike Beaton
065177ebb9 OcConsoleLib: Apply ConsoleMode console text resolution option to builtin text renderer 2023-05-04 09:59:29 +01:00
Mike Beaton
c8b93357b8 OcConsoleLib: Simplify use of builtin renderer uncontrolled mode
The renderer already (esp. since recent changes incl. reset to controlled on cls)
manages its own transitions to controlled, so we just need to indicate uncontrolled
in cases where something else has been rendering graphics
2023-05-04 09:59:22 +01:00
Mike Beaton
7feb7c98c3 OcConsoleLib: Builtin renderer updates
- Perform full clear screen on switch from graphics to text mode,
   if marked uncontrolled
 - Suppress remaining console coloured output (screen clear and
   cursor, text was already handled) if in graphics mode
 - Remain uncontrolled while in graphics mode
 - Improve builtin renderer screen size calculations
   o Although we appear to lose a small amount of height (i.e. up
     to one row) with the new font size scaled vertical padding,
     we were actually losing it anyway with the previous screen
     size calculation
 - Re-order initialisation of builtin mode
   o Avoid producing uncontrolled text with old text protocol,
     after resync screen clear of new controlled protocol
2023-05-03 22:21:11 +01:00
Mike Beaton
c1f0b9f169 OcConsoleLib: Implement InitialMode 2023-05-03 22:21:04 +01:00
Mike Beaton
216bdcedc3 OcConsoleLib: Builtin renderer updates
- Avoid additional clear screen when resyncing
 - Use same values to trigger full clear screen after background
   colour change as after mark uncontrolled
 - Only scroll used width when controlled
 - Reset controlled area after clear screen
 - Fix mConsoleMaxPosY init error for controlled mode
   o Present since 76e889f89af7ecdec0a8de191d7ded5856b338fb
 - Fix ConsoleControl wording in docs
 - Add ASSERTS and comments
2023-05-02 07:49:01 +01:00
Mike Beaton
acecdf5e7b Revert OcConsoleLib related parts of recent commits:
- Reverts part of commit 2439d58412c071cb735cde8a70c9ef964a095780.
 - Reverts commit a189bd53bc2ac1490dac7125a9ce11fd03571755.
 - Reverts part of commit b07843fe1d47454747ae4eda9ea0189aa9fb8c03.
2023-05-02 07:49:01 +01:00
PMheart
2e3510913a
OcAppleKernelLib: Fix ExternalDiskIcons quirk on macOS 13.3+, thanks fusion71au (#452) 2023-04-29 23:30:25 +02:00
Savva Mitrofanov
11a2606650 Library: Remove OcPeCoffLib 2023-04-26 11:01:50 +03:00
Savva Mitrofanov
70bb87c7b0 Library: Replace OcPeCoffLib with UefiImageLib 2023-04-26 11:01:50 +03:00
jozews321
77d02b36fa
OcAppleKernelLib: Remove Ventura check for AppleCpuPmCfgLock (#448) 2023-04-21 11:01:16 +02:00
Savva Mitrofanov
b2d438d6f3 Switch OcGuardLib to BaseOverflowLib 2023-04-13 13:16:14 +06:00
John Davis
6a65dd1421 OcMainLib: Process kext Patch after Add
Enables patching of force injected kexts
2023-04-11 18:08:49 -05:00
Mike Beaton
5d8e3f5836 OcConsoleLib: Additional info in GOP dump; additional guards on GopBurstMode 2023-04-09 10:18:58 +01:00
vit9696
fe15c15d17 OcMainLib: Forcibly disable single user mode with Apple Secure Boot
For some reason EfiBoot, at least as of 13.3.1, no longer filters
-s argument from command-line. Make sure we filter this out ourselves.
2023-04-08 23:28:03 +03:00
CaseySJ
4bd9343ded
OcAppleKernelLib: Add DisableIoMapperMapping quirk (#440) 2023-04-06 01:55:53 +03:00
PMheart
41b8aca08b
OcCompressionLib: Update to zlib 1.2.13 (#439) 2023-04-02 08:31:16 +02:00
PMheart
3171e2a31c Build: Silence OcCompressionLib warning (-Wno-unknown-warning-option) 2023-04-01 14:07:34 +02:00
PMheart
d4da677063 OcCompressionLib: Fix zlib build with XCODE toolchain
REF: 23ddbba0d7

This is a supplement for the commit above.
2023-04-01 12:24:11 +02:00
Savva Mitrofanov
1f2d00373e
OcDeviceMiscLib: Fix memory leak 2023-03-31 17:15:55 +06:00
Savva Mitrofanov
5791c78351
OcAppleSecureBootLib: Fix memory leak 2023-03-31 17:09:50 +06:00
PMheart
edb04199d9
OcAppleKernelLib: Add new patch for macOS 13.3+ IOAHCIBlockStorage patch, by @vit9696 (#438) 2023-03-30 01:04:26 +02:00
Andrey1970
852016cd85 Updated builtin firmware versions 2023-03-28 17:22:25 +03:00
Mike Beaton
abe28e829f OcConsoleLib: Add GopBurstMode quirk
OcMemoryLib: Add additional PAT and MTRR caching support
2023-03-28 07:18:14 +01:00
Andrey1970
7fa535797e Updated builtin firmware versions 2023-03-28 01:14:38 +03:00
CorpNewt
fe8491348f
OcAcpiLib: Fix comment printing failing to process long comments (#432) 2023-03-09 23:12:49 +03:00
Mike Beaton
b34b7c48f2 Various: Add missing .inf dependencies 2023-02-25 19:37:27 +03:00
Mike Beaton
cb962f8f4b OcLogAggregatorLib: Fix non-standard linkage pattern 2023-02-25 19:37:27 +03:00
vit9696
05d2b00c7d OcAppleKernelLib: Fix ProvideCpuInfo on 13.3 2023-02-23 15:26:01 +03:00
Savva Mitrofanov
93dc0951a1
OcMachoLib: Rename Fat.c to MachoFat.c to solve conflict with FatPkg 2023-02-22 16:47:13 +06:00
Mike Beaton
2439d58412
OcConsoleLib: Prevent verbose boot text overwriting pre-existing graphics (#426)
- Clear console screen on change to console mode
 - Ensure entire screen is cleared at least once in console mode
   o Was not needed/was done by default, prior to a189bd53bc2ac1490dac7125a9ce11fd03571755
   o Remove GOP clear screen work-around no longer required with this change.
 - These changes improve EnableGop driver in the same way, so update version number
   o Add EnableGop version in UI section, to enable tool builders to track it
2023-02-22 02:01:39 +03:00
Marvin Häuser
bc64f5ad1f OcAfterBootCompatLib: Fix config output 2023-02-21 17:30:11 +01:00
Marvin Häuser
cc26901bff OcMainLib: Drop redundant cast 2023-02-21 17:30:11 +01:00