78 Commits

Author SHA1 Message Date
Pavel Naberezhnev
7897c1e039
Updated minimal EFI Event support in userspace (#577) 2025-10-01 10:48:41 +03:00
Pavel Naberezhnev
0d19bcd7b3 Added UserEvent functions into UEFI in userspace
Signed-off-by: Pavel Naberezhnev <pavelnaberezhnev@gmail.com>
2025-09-11 14:53:27 +03:00
Pavel Naberezhnev
e1d7b9b418 Added minimal UEFI Event subsystem support into userspace
This feature adds support for UEFI Event in userspace. The
following has been implemented:
  - The number of events if fixed
  - Event dispatching occurs through an explicit call to
    the dispatcher from UEFI Event functions
  - Event groups are not supported

Signed-off-by: Pavel Naberezhnev <pavelnaberezhnev@gmail.com>
2025-09-11 14:53:27 +03:00
Mikhail Krichanov
88ada4d94b Utilities: Assigned default values to PcdUefiImageFormatSupportNonFv
and PcdImageProtectionPolicy, adjusted Policy in tools.
2023-12-07 11:30:51 +03:00
Mikhail Krichanov
43c4931957 User: Defined PcdImageProtectionPolicy for ImageTool in audk, adopted new API. 2023-11-23 14:04:16 +03:00
Mikhail Krichanov
a5d613837b User: Changed PcdUefiImageFormatSupportFv to fix audk uefi-format branch compilation. 2023-11-23 14:02:07 +03:00
Mike Beaton
8d002d7e83 User: Set PcdDebugRaisePropertyMask default value to zero
- Matches recent fix in dbebb53c11
 - Correct usage is for bits here to only ever be manually enabled for specific debugging tasks
2023-11-08 09:27:12 +00:00
Mike Beaton
6d94380499 User: Set PcdImageLoaderRemoveXForWX to TRUE
- Matches value used in OpenCore
 - Allows AppleEfiSignTool to work with W^X error legacy Apple images
Futher work required for AppleEfiSignTool to work with section overlap error images.
2023-11-08 07:26:09 +00:00
rilysh
9870667468
User: close file ptr before abort() (#487) 2023-09-27 22:07:18 +02:00
Mikhail Krichanov
e8ddb58b27 User: Changed PcdUefiImageFormatSupportFv to fix audk UE branch compilation. 2023-07-19 11:23:58 +03:00
John Davis
fcc28d70c0 OcCpuLib: Get PM timer address from OpenDuet for non-Intel chipsets 2023-07-08 20:58:49 -05:00
Marvin Häuser
8d85c555c6 User/File: Fix memory leak 2023-06-21 00:21:54 +02:00
Marvin Häuser
854a026617 [WIP] Expose UE-aware UefiImageFormat PCDs 2023-06-18 16:02:03 +02:00
Marvin Häuser
055bddf3eb User: Deduplicate ConfigureMemoryAllocations 2023-06-18 16:02:00 +02:00
Marvin Häuser
2bcc3cbd7f User/BaseMemoryLib: Fix aligned page alloc 2023-06-13 11:32:04 +02:00
Savva Mitrofanov
11a2606650 Library: Remove OcPeCoffLib 2023-04-26 11:01:50 +03:00
Marvin Häuser
d185827c70 User/UserBaseMemoryLib: Fix InternalAllocateAlignedPages implementation 2023-04-22 22:19:28 +02:00
Savva Mitrofanov
c72c258fca
User: Update ImageLoader PCD tokens 2023-04-14 21:16:02 +06:00
Marvin Häuser
997ef4ae8f User/UserBaseMemoryLib: Define aligned page alloc definitions 2023-04-10 21:08:48 +02:00
Marvin Häuser
cda8a58595 User/BaseMemoryLib: Consume CommonMemoryAllocationLib 2023-04-01 21:28:17 +02:00
Marvin Häuser
0f769479ff User/BaseMemoryLib: Use _aligned_free for MSVC 2023-03-30 17:27:30 +02:00
Savva Mitrofanov
1a9a40bf74 User: Implements runtime GetTime function in UserBootServices 2023-03-07 21:28:51 +06:00
Savva Mitrofanov
344a2080b2 User: Adds UserUnicodeCollation library
Dedicates unicode collation protocol functions into separate user
library to prevent code duplication across several user utilities
2023-03-07 21:28:51 +06:00
Savva Mitrofanov
7a4bc7395e
User: Adds PcdFatReadOnlyMode feature flag token 2023-02-27 14:38:05 +06:00
Mikhail Krichanov
da447f6926 User: Added PcdDebugRaisePropertyMask. 2023-02-27 10:02:38 +03:00
Savva Mitrofanov
a0a25e597c
User: Corrects CalculateCrc32
We need to create proper wrapper like it done in
RuntimeDriverCalculateCrc32
2023-02-22 16:59:59 +06:00
Savva Mitrofanov
f9e1f64666
User: Adds DummyRestoreTPL and CalculateCrc32 to gBS 2023-02-22 16:47:14 +06:00
Marvin Häuser
bba89ba527
User: Fix bogus FreePages() abort 2023-02-04 23:19:02 +01:00
Savva Mitrofanov
6d20d2d56f User: Corrects ASSERT behavior in UserPcd
The CpuBreakPoint in UserMisc normally shouldn't enter dead-loop
condition, instead it should break the program using abort signal. Also
sets DEBUG_PROPERTY_ASSERT_BREAKPOINT_ENABLED bit by default in
PcdDebugPropertyMask. As a background was a problem with fuzzing when
program process falls into dead-loop condition instead of just to exit
with crash
2023-01-12 13:41:53 +03:00
vit9696
092af5d99c Build: Make PE loader strip X bit in WX sections
This is required to support Apple-made images that have .data with RWX
permissions. Found in EfiBoot, APFS, HFS, ExFat, etc.

closes acidanthera/bugtracker#2190
2023-01-04 21:43:10 +03:00
vit9696
eb1347c77c User: Please macOS compiler 2023-01-02 20:49:40 +03:00
vit9696
9e81ed82f3 User: Please analysers 2023-01-02 20:17:32 +03:00
vit9696
6055ec7b43 User: Fix compilation 2023-01-02 20:13:14 +03:00
Mikhail Krichanov
c4c6939db7 User: Refactored UserWriteFile(). 2022-12-28 12:11:55 +03:00
Mikhail Krichanov
1a8f88bbd2 User: Windows compilation fixes. 2022-12-28 12:11:36 +03:00
Mikhail Krichanov
b139e3a07d User: Added IsZeroGuid(). 2022-12-28 12:11:23 +03:00
Savva Mitrofanov
5c2c72febc User: Add pool allocation size configurable limits for UserBaseMemoryLib
To improve for example handling of OOM-states during fuzzing we provides
options to limit maximum size of single allocation operation. Extends
checks for Free operations and integer underflow/overflow handling.
2022-11-25 20:55:14 +06:00
Savva Mitrofanov
5137def394
User: Add DiskIo2 and UnicodeCollation protocol guids into GlobalVar 2022-11-23 19:42:16 +06:00
PMheart
27905dd7d7
Utilities: Introduce TestProcessKernel tool for testing kext injection/patching from config, by @mhaeuser (#369) 2022-08-24 11:26:35 +03:00
MikhailKrichanov
e9136a3a0b
OpenNtfsDxe: Implement NTFS read-only driver. (#332) 2022-05-15 00:55:52 +03:00
PMheart
228f8ca1fb Codestyle: Apply codestyle changes with Uncrustify 2022-04-25 14:51:15 +02:00
PMheart
d5d108e090 User: Improved UserReadFile error-checking 2022-04-23 10:06:13 +02:00
PMheart
a732151282 TestImg4: Convert to EDK-II codestyle 2022-04-22 09:14:05 +02:00
MikhailKrichanov
56f43b771d
Utilities: Fixed buggy libFuzzer merge, which could skip new entries that increase coverage. (#333) 2022-04-20 21:48:07 +03:00
PMheart
1ca2a9553f
OcAppleKernelLib: Added CustomPciSerialDevice quirk (#331) 2022-04-14 12:58:37 +02:00
PMheart
292b7c91e8 User: Fix typo 2022-04-09 15:38:39 +02:00
PMheart
c953fa071d User: Cleanup 2022-04-08 12:19:03 +02:00
MikhailKrichanov
3f930d0f04
UserBaseMemoryLib: Fixed buggy rounding for UINT64. (#329) 2022-03-29 22:07:18 +02:00
vit9696
9efcabc623 User: Fix previous commit 2022-02-04 01:30:29 +03:00
vit9696
26e7c75afa User: Backport allocation failure generator 2022-02-04 01:23:37 +03:00