mirror of
https://github.com/acidanthera/OpenCorePkg.git
synced 2025-12-08 19:25:01 +00:00
This reverts commit d509a0759070ae2ebfeda2bbce9510661d083846. It introduced an illegal call to RaiseTPL, passing the lowest TPL exposed to non-firmware modules. As the library is likely to be called by a third-party driver, its TPL is going to be greater than App TPL, leading to indeterminate behaviour as per UEFI 2.7 Errata A, page 163, "Note".
OcSupportPkg
Additional UEFI support common libraries shared by other projects in Acidanthera. The primary purpose of the library set is to provide supplemental functionality for Apple-specific UEFI drivers.
Early history of the codebase could be found in AppleSupportPkg and PicoLib library set by The HermitCrabs Lab.
Features
- Apple PE image signature verification
- CPU information gathering
- Cryptographic primitives (SHA-256, RSA, etc.)
- Helper code for ACPI reads and modifications
- Higher level abstractions for files, strings, timers, variables
- Overflow checking arithmetics
- PE image loading with no UEFI Secure Boot conflict
- Plist configuration format parsing
- PNG image loading
OcGuardLib
This library implements basic safety features recommended for the use within the project. It implements fast safe integral arithmetics mapping on compiler builtins, type alignment checking, and UBSan runtime, based on NetBSD implementation.
The use of UBSan runtime requires the use of Clang compiler and -fsanitize=undefined argument. Refer to
Clang documentation for more
details.
Credits
- The HermitCrabs Lab
- All projects providing third-party code (refer to file headers)
- Download-Fritz
- Goldfish64
- savvamitrofanov
- vit9696
Description
Languages
C
95.2%
Assembly
1.9%
Shell
0.9%
Python
0.9%
C++
0.8%
Other
0.3%