1321 Commits

Author SHA1 Message Date
Mikhail Krichanov
3cf1979ad2 Ring3: Added SysCallHandleProtocol and
SIMPLE_FILE_SYSTEM_PROTOCOL wrapper.
2025-04-14 11:36:09 +03:00
Mikhail Krichanov
a00e407ac0 Ring3: Added SysCallCloseProtocol. 2025-04-14 11:36:09 +03:00
Mikhail Krichanov
3c7863e47e Ring3: Small fix. 2025-04-14 11:36:09 +03:00
Mikhail Krichanov
21b60e8dbe Ring3: Added BlockIo, DiskIo wrappers. 2025-04-14 11:36:09 +03:00
Mikhail Krichanov
d11ff4bebd Ring3: Some refactoring. 2025-04-14 11:36:09 +03:00
Mikhail Krichanov
4ea896a74f Ring3: Added Ring3BlockIo and Ring3DiskIo drafts. 2025-04-14 11:36:09 +03:00
Mikhail Krichanov
cc50bae593 Ring3: Refactored comparing of GUIDs. 2025-04-14 11:36:09 +03:00
Mikhail Krichanov
a44e2a5efa Ring3: Added SysCallFreePool,
fixed wrappers for EFI_DRIVER_BINDING_PROTOCOL.
2025-04-14 11:36:09 +03:00
Mikhail Krichanov
13d7a33127 Ring3: Refactored AllocateRing3CopyPages() and mUserDriverBinding. 2025-04-14 11:36:09 +03:00
Mikhail Krichanov
f0fb2003a2 Ring3: Refactored CallRing3(). 2025-04-14 11:36:09 +03:00
Mikhail Krichanov
01f038b49f Ring3: Added SysCallAllocatePool. 2025-04-14 11:36:06 +03:00
Mikhail Krichanov
f36554560b Ring3: Merged Ring3Dxe and Ring3UefiBootServicesTableLib into DxeRing3. 2025-04-14 11:23:05 +03:00
Mikhail Krichanov
702adc6292 Ring3: Refactored Ring3 initialization. 2025-04-14 11:23:05 +03:00
Mikhail Krichanov
27c04bb224 Ring3: Moved Ring3UefiBootServicesTableLib to Ring3Dxe. 2025-04-14 11:23:05 +03:00
Mikhail Krichanov
0171f0ceff Ring3: Added SysCallReturnToCore. 2025-04-14 11:23:05 +03:00
Mikhail Krichanov
8a16ce73a7 Ring3: Refactored EnterUserImage() into CallRing3(). 2025-04-14 11:23:05 +03:00
Mikhail Krichanov
1b37dd79f6 Ring3: Fixed SysCallInstallMultipleProtocolInterfaces. 2025-04-14 11:23:05 +03:00
Mikhail Krichanov
2392881e22 Ring3: Added Ring3EntryPoint draft. 2025-04-14 11:23:05 +03:00
Mikhail Krichanov
ad33670b08 Ring3: Added SysCallInstallMultipleProtocolInterfaces draft. 2025-04-14 11:23:05 +03:00
Mikhail Krichanov
028342cb6b Ring3: Refactored stack operations. 2025-04-14 11:23:05 +03:00
Mikhail Krichanov
9d5ef4f68e Ring3: Refactored out FunctionAddress from API. 2025-04-14 11:23:05 +03:00
Mikhail Krichanov
b0c91ce70c Ring3: Refactored out AllocateRing3Pages() BootService. 2025-04-14 11:23:05 +03:00
Mikhail Krichanov
78fac6c238 Ring3: Refactored out AllocateCoreCopy() BootService. 2025-04-14 11:23:05 +03:00
Mikhail Krichanov
926f1b1b69 Ring3: Moved SysCall code to DxeCore. 2025-04-14 11:23:05 +03:00
Mikhail Krichanov
12cc1a9a5d Ring3: Added helper function AllocateCoreCopy(), refactored SysCall. 2025-04-14 11:23:05 +03:00
Mikhail Krichanov
e170598395 Ring3: Added helper function AllocateRing3Pages() and
draft of Ring3LocateProtocol().
2025-04-14 11:23:05 +03:00
Mikhail Krichanov
5bc84f06c0 Ring3: Fixed bug in calling Boot Service and did some refactoring. 2025-04-14 11:23:04 +03:00
Mikhail Krichanov
2fe010f40b Ring3: Added CoreSysCallStack. 2025-04-14 11:23:04 +03:00
Mikhail Krichanov
e36fd7b639 Ring3: Added SYSCALL draft. 2025-04-14 11:23:04 +03:00
Mikhail Krichanov
6f854f19e9 Ring3: Fixed LibraryConstructors' initialization and
allowed user to access ports.
2025-04-14 11:23:04 +03:00
Mikhail Krichanov
51e2c2a3e8 Ring3: Added EnterUserImage(). 2025-04-14 11:23:01 +03:00
Mikhail Krichanov
2fa2894bbd Ring3: Added GetMemoryAttributes() into EFI_CPU_ARCH_PROTOCOL. 2025-04-14 11:21:17 +03:00
Mikhail Krichanov
62eb73d711 Ring3: Added IsUserImage field into LOADED_IMAGE_PRIVATE_DATA structure. 2025-04-14 11:21:17 +03:00
Mikhail Krichanov
1a88ba5afc Ring3: Set USER bit in all page table structures. 2025-04-14 11:21:17 +03:00
Mikhail Krichanov
1af0ca7cdc Ring3: Enabled SMAP and SMEP. 2025-04-14 11:21:17 +03:00
Mikhail Krichanov
33f15b44de Ring3: Added EFI_MEMORY_USER attribute. 2025-04-14 11:21:14 +03:00
Mikhail Krichanov
992385e15e SecurePE: Defined new PcdImageProtectionPolicy. 2025-04-07 12:30:28 +03:00
Mikhail Krichanov
48b806f46f UE: Support UE generation and consumption. 2025-04-07 12:24:28 +03:00
Mikhail Krichanov
1fef202932 MdePkg/UefiImageLib: Introduce DebugAddress
Signed-off-by: Marvin Häuser <mhaeuser@posteo.de>
2025-04-07 12:24:27 +03:00
Mikhail Krichanov
e46d356fc9 MdePkg/UefiImageLib: Support multi-format and multi-source architecture
Signed-off-by: Marvin Häuser <mhaeuser@posteo.de>
2025-04-07 12:24:27 +03:00
Marvin Häuser
ec35a44c1e MdeModulePkg/DxeCore: Re-use ImageIsFromFv for memory protection 2025-04-07 12:24:27 +03:00
Mikhail Krichanov
51c4b78146 Revert "MdeModulePkg: Enable forward edge CFI in mem attributes table"
This reverts commit e4ef609319236a018c60b84f68d9d923c4ba383e.
2025-04-07 12:24:27 +03:00
Mikhail Krichanov
20dd836214 MdeModulePkg/Core/Dxe: Integrate CPU Architectural producer
BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=3223

In the current design, memory protection is not available till CpuDxe
is loaded. To resolve this, introduce CpuArchLib to move the
CPU Architectural initialization to DxeCore.

Cc: Eric Dong <eric.dong@intel.com>
Cc: Ray Ni <ray.ni@intel.com>
Cc: Laszlo Ersek <lersek@redhat.com>
Cc: Rahul Kumar <rahul1.kumar@intel.com>
Cc: Vitaly Cheptsov <vit9696@protonmail.com>
Signed-off-by: Marvin Häuser <mhaeuser@posteo.de>
2025-04-07 12:23:28 +03:00
Mikhail Krichanov
bc87d7b430 Drop support for the TE format 2025-04-07 12:18:22 +03:00
Mikhail Krichanov
6b652ab025 MdePkg/MemoryAllocationLib: Add Allocate(Aligned)CodePages 2025-04-07 12:16:51 +03:00
Mikhail Krichanov
a52efcc86a MdePkg: Introduce CommonMemoryAllocationLib 2025-04-07 12:13:58 +03:00
Marvin Häuser
d11ca287c5 MdeModulePkg/CorePei: Remove unused ShadowedImageRead member 2025-04-07 12:13:58 +03:00
Marvin Häuser
f4778d6fdd EmulatorPkg: Fix some image loader related issues 2025-04-07 12:13:58 +03:00
Mikhail Krichanov
09a0c067d0 SecurePE: Replaced old PE loader with Secure one. 2025-04-07 12:12:35 +03:00
Mike Maslenkin
0f12a5f722 MdeModulePkg: fix warning about uninitialized variable
Handle.c:1302:24: error: 'Prot' may be used uninitialized
  in this function [-Werror=maybe-uninitialized]

       *Interface = Prot->Interface;
                    ~~~~^~~~~~~~~~~
cc1: all warnings being treated as errors

Signed-off-by: Mike Maslenkin <mike.maslenkin@gmail.com>
2025-01-29 17:20:57 +01:00