69 Commits

Author SHA1 Message Date
PMheart
bfa36972a5 OcMiscLib: Fix FindPattern prototype 2022-06-13 14:45:36 +02:00
PMheart
228f8ca1fb Codestyle: Apply codestyle changes with Uncrustify 2022-04-25 14:51:15 +02:00
MikeBeaton
22cfebdf6f Platform: OpenLinuxBoot.efi 2021-09-04 15:48:36 +01:00
MikhailKrichanov
2b2cbe9048
OcMiscLib: Allow passing arguments to the loader (#270) 2021-06-16 18:16:02 +03:00
Marvin Häuser
ccedcdc672 OcMiscLib: Align LoadedImage with Shell behaviour for no arguments 2021-04-03 18:27:56 +02:00
MikeBeaton
09621ad66c OCB: Use Apple Event typing for builtin picker password; add console flush to UnregisterTypingHandler 2021-03-25 05:47:06 +00:00
MikeBeaton
e69e28cb69 BootPickers: Apple Event kb handling + typing; Apple Key Map non-repeat key handling; CTRL indicator in Builtin. 2021-03-23 12:26:46 +00:00
vit9696
5a69caa7e0 OcCpuLib: Implement Apple nForce CPU frequency reading 2021-03-13 01:12:43 +03:00
PMheart
ca8046be27
OcCpuLib: Implement TSC frequency reading from Apple Platform Info (#233) 2021-03-12 19:26:23 +08:00
vit9696
9bd1d3b497 OcDeviceMiscLib: Move misc device manipulation to a separate library 2021-02-28 12:44:15 +03:00
vit9696
e2f219e075 OcCpuLib: Fixed FSBFrequency calculation with fractional multiplier
closes acidanthera/bugtracker#1529
2021-02-25 19:45:38 +03:00
PMheart
729f8c605e OcMiscLib: Fix compilation 2021-02-19 16:11:12 +08:00
PMheart
ab397fd1dd OcMiscLib: Add OcCountProtocolInstances API 2021-02-19 16:03:30 +08:00
vit9696
b4449f48dd OcMiscLib: Workaround firmware not specifying image handle at bootstrap
references acidanthera/bugtracker#1502
2021-02-18 08:02:47 +03:00
Marvin Häuser
85036254d0 OcMiscLib: Fix potential overflow in ApplyPatch() 2021-02-14 13:41:48 +01:00
vit9696
8f41ba3891 OcMiscLib: Fix typos and add missing constants 2021-01-26 03:14:03 +03:00
vit9696
9a11244600 OcMiscLib: Add OcLoadAndRunImage and use it in Bootstrap 2021-01-17 03:03:48 +03:00
vit9696
f5a85ddf73 OcMiscLib: Unroll pattern matching loop 2020-12-01 15:25:54 +03:00
zhen-zen
811f4a064e
OcMiscLib: Fix FindPattern on last byte of data (#148) 2020-11-02 06:47:27 +08:00
John Davis
cde37269aa
VBIOS patching via ForceResolution option (#144)
* BiosVideo: Initial Intel patching functions

* BiosVideo: Implement patch protocol

* BiosVideo: Read EDID from VBE

* BiosVideo: Fix previous commits

* OpenDuet: Fix Windows builds

* BiosVideo: Fix MSVC warnings

* BiosVideo: Pull max resolution from EDID

* BiosVideo: Patch based on PCI vendor ID

* BiosVideo: Fix more MSVC warnings

* OcMiscLib: Try to fix OpenDuet MSVC compilation

* BiosVideo: Fix incorrect return status

* OpenDuet: Create OcDebugLogLibNull library

* Protocol: Rename OC_VBIOS_PATCH_PROTOCOL to OC_FORCE_RESOLUTION_PROTOCOL

* OpenCore: Add ForceResolution option

* BiosVideo: Fix consistency of height/width parameters

* Includes: Mark height/width as optional

* BiosVideo: Cleanup misc issues

* Docs: Add support note
2020-10-26 19:18:06 -05:00
vit9696
a9cbcd9ae8 Build: Drop EfiPkg 2020-05-17 14:28:41 +03:00
vit9696
0ee57bdef1 OcConsoleLib: Fixed builtin text renderer failing to provide ConsoleControl 2020-05-14 09:43:07 +03:00
vit9696
b4ade47942 OcMiscLib: Fix possible assert during USB ownership release 2020-05-14 09:03:28 +03:00
vit9696
5e5ca3fb8b OcMiscLib: Introduce GetArguments function 2020-04-20 15:33:43 +03:00
vit9696
97585cb6c2 Build: Remove OcSupportPkg usage 2020-02-29 17:39:41 +03:00
vit9696
ad512b7ca2 OcMiscLib: Drop custom Base64Decode implementation 2020-02-16 03:39:46 +03:00
vit9696
17acb56197 OcConsoleLib: Move NullTextOutput from OcMiscLib 2020-02-01 21:53:50 +03:00
Download-Fritz
5459af9a37 OcBootManagementLib/OcMiscLib: Move OcTimerLib reference 2019-10-03 10:00:18 +02:00
M. R. Miller
68171e2e7b Fix some formatting. 2019-08-20 14:11:48 +03:00
M. R. Miller
9d40af5afc Add MultThenDivU64x64x32 (from MdeModulePkg) to OcMiscLib. 2019-08-20 14:11:48 +03:00
vit9696
7eca596604 OcAppleBootCompatLib: Initial version 2019-08-04 21:27:44 +03:00
vit9696
f4fceb7a91 OcMemoryLib: Initial version 2019-07-16 20:21:43 +03:00
Download-Fritz
8abb1b2d54 Revert "OcMiscLib/DebugHelp: revert the previous commit, use RaiseTPL (TPL_APPLICATION) to get method WaitForEvent working."
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".
2019-06-14 23:09:49 +02:00
lvs1974
d509a07590 OcMiscLib/DebugHelp: revert the previous commit, use RaiseTPL (TPL_APPLICATION) to get method WaitForEvent working. 2019-06-14 21:39:59 +02:00
Download-Fritz
6c8ea98d03 OcMiscLib/DebugHelp: Manually poll event instead of waiting (EFI_UNSUPPORTED on Insyde) 2019-06-14 19:49:07 +02:00
vit9696
2825930a0d OcMiscLib: Force our own base64 implementation, edk2 is broken
Revert "Deprecate OcBase64Decode in favor of edk2's Base64Decode"
This reverts commit 2104029260a009b807614b10aaee931685840282.
Reference: https://github.com/acidanthera/bugtracker/issues/372
2019-06-10 19:59:23 +03:00
Download-Fritz
2104029260 Deprecate OcBase64Decode in favor of edk2's Base64Decode 2019-06-09 19:30:26 +02:00
Download-Fritz
908709afd2 Import IntelFrameworkPkg LegacyRegion header 2019-05-11 12:27:53 +02:00
Download-Fritz
e8cfb343a5 OcMiscLib: Reference missing dependencies
Closes #316
2019-05-04 12:42:12 +02:00
vit9696
b22633fe9e OcAppleRamDiskLib: Reimplement allocator 2019-04-20 21:39:02 +03:00
vit9696
3462fcbff9 DebugHelp: Case insensitive key press comparison 2019-04-18 10:10:14 +03:00
vit9696
6afa5c82af OcMiscLib: Use TPL_CALLBACK for WaitForKeyIndex timeout
On APTIO IV TPL_APPLICATION gives EFI_INVALID_PARAMETER.
2019-04-12 14:36:38 +03:00
vit9696
b8cad9baca OcMiscLib: Cleanup EhciReleaseOwnership 2019-04-10 01:04:11 +03:00
vit9696
66abac936a OcMiscLib: Release EHCI and UHCI ownership, based on work by Needy 2019-04-09 23:46:47 +03:00
vit9696
cd7b75af4a OcMiscLib: Implement ReleaseUsbOwnership 2019-04-08 23:28:04 +03:00
Download-Fritz
ae5fa35334 OcMiscLib: Import forgotten file 2019-04-06 13:26:42 +02:00
Download-Fritz
faf7976d33 Retire OcProtocolLib, move UninstallAllProtocols function to OcMiscLib 2019-04-06 13:09:13 +02:00
vit9696
65dad1e128 OcAppleBootPolicyLib: Implement simple boot picker 2019-03-31 21:43:47 +03:00
vit9696
0badcb3cb4 OcAppleKernelLib: Cleanup kext patching code 2019-03-25 20:09:55 +03:00
Download-Fritz
f445880f41 OcMiscLib: Add missing dependency to OcStringLib. 2019-03-24 09:47:31 +01:00