72 Commits

Author SHA1 Message Date
Vitaly Cheptsov
4b3b0cb1d7
OcBootManagementLib: Add Apple DP expansion for VirtIO BLK (#561)
Apparently macOS strips down HD nodes from VirtIO BLK devices
leaving them "infix" shortened, i.e. PCI/APFS instead of
PCI/HD/APFS.
2024-10-07 17:44:08 +03:00
Mike Beaton
546aa5ba64 OcBootManagementLib: Unify boot meta file loading code;
Optionally allow .contentVisibility in same boot fs root locations
as searched for .VolumeIcon.icns, since file next to boot.efi is
deleted on macOS update.
2023-07-04 01:23:42 +01:00
Savva Mitrofanov
b2d438d6f3 Switch OcGuardLib to BaseOverflowLib 2023-04-13 13:16:14 +06:00
Marvin Häuser
3d58e26acc OcDevicePathLib: Import API to find device path terminator 2022-06-11 12:30:20 +02:00
PMheart
228f8ca1fb Codestyle: Apply codestyle changes with Uncrustify 2022-04-25 14:51:15 +02:00
MikeBeaton
991cd3b2dc OcDevicePathLib: Fix possible suffix underflow; return OcFileDevicePathFullNameLen to strlen-style 2021-05-14 14:38:36 +01:00
Mike Beaton
3629b5f2fc
OcDevicePathLib: Apply separator to multi-node paths (#259) 2021-05-14 08:17:25 +03:00
vit9696
7066f9bea4 OcBootManagementLib: Cleanup bootstrap code even further 2021-01-31 21:31:34 +03:00
Download-Fritz
27dcb28327
OcBootManagementLib: Support reordering Bootstrap by the FW (#164) 2020-12-03 03:11:21 +03:00
vit9696
8be51674a4 OcBootManagementLib: Implement RealPath and TextMode for custom entries
closes acidanthera/bugtracker#1081
2020-11-07 05:47:45 +03:00
vit9696
46482050c9 Bootstrap: Add support for launching from relative path 2020-11-06 19:37:22 +03:00
vit9696
a9af4abd09 OcBootManagementLib: Fixed ScanPolicy NVMe handling on MacPro5,1
closes acidanthera/bugtracker#1234
2020-10-24 19:51:07 +03:00
dakanji
d9cc30567c
Library: Firmware pluralisation fixes in the code (#136) 2020-10-13 01:42:59 +03:00
vit9696
4d7d8268ff
OcDevicePathLib: Fix matching disk controllers with legacy OPROM (#95)
closes acidanthera/bugtracker#991
2020-08-09 08:30:33 +03:00
vit9696
870017d0e5 OcDevicePathLib: Added a workaround for PCI0 with 0x1 _UID
references acidanthera/bugtracker#664
2020-07-25 19:32:57 +03:00
Download-Fritz
6eea5727c5 OcDevicePathLib: Fix potential deadloop 2020-07-18 23:13:24 +02:00
Download-Fritz
5126895cf5 OcDevicePathLib: Correct DP fix return code 2020-06-22 18:02:08 +02:00
Download-Fritz
a9d58f8257 OcDevicePathLib: Add more PCIRoot mappings
Fixes https://github.com/acidanthera/bugtracker/issues/664 (again)
2020-06-22 16:46:33 +02:00
Download-Fritz
afd982387b OcBootManagementLib: Set 'Windows' name based on booter name 2020-05-24 18:20:19 +02:00
Download-Fritz
8e42201f04 OcDevicePathLib: Fix restore struct fields 2020-05-06 14:52:53 +02:00
Nikolai SAOUKH
52aee52fa4 OpenCorePkg\Library\OcDevicePathLib\OcDevicePathLib.c: Fix warning C4244: '=': conversion from 'const UINT32' to 'UINT{8|16}', possible loss of data 2020-05-06 12:45:44 +03:00
vit9696
796765ca7c
OcBootManagementLib: Rework boot management (#42)
Co-authored-by: vit9696 <vit9696@users.noreply.github.com>
Co-authored-by: Download-Fritz <download-fritz@outlook.com>
2020-05-05 19:45:32 +03:00
vit9696
318dddf5b7 OcDevicePathLib: Implement support for fixing more device paths
- Works around PciRoot issue in ASUS Z10PE-D16
- Works around 0x22 / 22 typo in MacPro5,1

REF: https://forums.macrumors.com/posts/28169441

closes acidanthera/bugtracker#664
2020-01-25 16:10:09 +03:00
vit9696
1560cec90c OcGuardLib: Switch to edk2-stable201911 2019-11-29 17:32:17 +03:00
vit9696
ad640248f6 OcGuardLib: Drop global/inline static assert separation 2019-08-18 19:24:01 +03:00
Download-Fritz
30bfee014d OcDevicePathLib: Fix type mismatches 2019-08-15 21:29:39 +02:00
Download-Fritz
09f2f4fd15 OcDevicePathLib: Remove redundant check 2019-08-15 17:28:57 +02:00
Download-Fritz
f0bdadabb5 OcDevicePathLib: Import File DP Path retrieval APIs 2019-08-15 17:27:07 +02:00
vit9696
598a106c22 OcDebugLogLib: Add hex dumping 2019-07-21 12:25:51 +03:00
vit9696
3bd6c3680a OcDevicePathLib: Fix memory leak in OcAppendDevicePathInstanceDedupe 2019-07-21 00:36:24 +03:00
Download-Fritz
ba5dc467c8 OcBootManagementLib: Support multiple boot instances per Preboot 2019-07-20 13:03:46 +02:00
Download-Fritz
8bc96853a0 OcDevicePathLib: Correct CRLF to LF 2019-07-15 12:27:25 +02:00
Download-Fritz
8c7bc280bf OcDevicePathLib: Add deduplicate DP instance append API 2019-07-15 09:19:58 +02:00
Download-Fritz
cf7baf68b6 OcDevicePathLib: Fix AppendFileNameDevicePath DP size 2019-07-05 20:58:20 +02:00
Download-Fritz
c3399b826b OcDevicePathLib: Fix OOB access for PathName length/size determination 2019-06-16 11:19:03 +02:00
Download-Fritz
7cc4af60d4 OcDevicePathLib: Avoid unaligned DP PathName accesses 2019-06-15 12:08:45 +02:00
Download-Fritz
93ad9aacc5 OcDevicePathLib: Account for more than one \0-character for PathName 2019-06-15 12:07:34 +02:00
Download-Fritz
c51b9441d3 OcDevicePathLib: Fix potential OOB access 2019-06-14 23:06:05 +02:00
Download-Fritz
cc4f8d9adf OcDevicePathLib: Avoid unaligned DP accesses 2019-06-14 23:02:19 +02:00
Download-Fritz
2f31cfaa27 OcDevicePathLib: Import file Device Path name size/len retrieval APIs 2019-06-14 23:02:19 +02:00
Download-Fritz
39f9566070 OcDevicePathLib: Return the number of fixed Apple DP nodes 2019-06-12 15:14:35 +02:00
Download-Fritz
95e73ff16a ASSERT before accessing unaligned DP strings 2019-06-11 21:47:48 +02:00
Download-Fritz
3950c381d2 OcDevicePathLib: Implement full DP printing via DevicePathLib function 2019-06-09 22:08:44 +02:00
Download-Fritz
85a0833e53 OcDevicePathLib: Add support for short-form expansion 2019-06-09 22:04:30 +02:00
Download-Fritz
1522c13c44 Revert changes related to directory path trailing 2019-05-11 22:11:05 +02:00
Download-Fritz
6bb5802574 OcBootManagementLib: IsFolder value can be determined implicitly by DP origin. Do not rely on PathName trailing. 2019-05-11 14:07:33 +02:00
Download-Fritz
dbb63a6cb4 OcDevicePathLib: Correct NodeType check for SATA and NVMe fixes 2019-05-01 12:09:53 +02:00
Download-Fritz
5aaf16594a OcDevicePathLib: Update fix logic for Pci(e)Root and report result 2019-04-29 22:00:13 +02:00
Download-Fritz
b741ca42f3 OcDevicePathLib: Check for valid endings within the fix function 2019-04-29 08:41:13 +02:00
Download-Fritz
4b061951e4 OcDevicePathLib: Rework the fix logic to only alter the node that cannot be located 2019-04-29 06:59:13 +02:00