69 Commits

Author SHA1 Message Date
Mikhail Krichanov
e358acb6d9 Core/Dxe: Added sanity checks. 2025-01-27 15:37:19 +03:00
Mikhail Krichanov
5c919d20d9 Ring3: Fixed memory leaks and passed UserArguments to CallBootService
through User stack for ARM, AARCH64.
2025-01-27 11:50:49 +03:00
Mikhail Krichanov
dd71687e44 SysCall: Refactored UserStackTop to allocate it anew for each CallRing3. 2025-01-24 18:44:34 +03:00
Mikhail Krichanov
734748e862 SysCall: Added NumberOfCalls to USER_SPACE_DRIVER. 2025-01-24 11:50:46 +03:00
Mikhail Krichanov
72c747b365 Ring3: Refactored out MAX_LIST. 2025-01-23 18:31:22 +03:00
Mikhail Krichanov
16f4111027 SysCall: Fixed paddings, renamed CoreOpenVolume as
CoreSimpleFileSystemOpenVolume.
2025-01-23 15:59:36 +03:00
Mikhail Krichanov
0e31c462fe SysCall: Added FreeUserSpaceDriver(). 2025-01-23 15:02:23 +03:00
Mikhail Krichanov
23b53c960d Ring3: Refactored out SysCallStackTop. 2025-01-21 23:07:38 +03:00
Mikhail Krichanov
dce1dbefaf Ring3: Added NumberOfArguments to SysCall() and CallBootService(). 2025-01-21 19:37:32 +03:00
Mikhail Krichanov
82c76dee94 Ring3: Saved ReturnSP on SysCallStack. 2025-01-20 19:45:00 +03:00
Mikhail Krichanov
cd65706178 Ring3: Refactored out CoreRsp and UserStackTop. 2025-01-16 15:43:34 +03:00
Mikhail Krichanov
708ea60bc3 SysCall: Refactored out mRing3CallStackTop and mCoreSysCallStackTop. 2025-01-14 12:02:38 +03:00
Mikhail Krichanov
08df5ddf53 SysCall: Refactored out CORE_STACK and RING3_STACK. 2025-01-13 20:00:34 +03:00
Mikhail Krichanov
befe005612 Ring3: Refactored out gCoreSysCallStackTop and gRing3CallStackTop. 2025-01-13 13:27:58 +03:00
Mikhail Krichanov
cd2cf69823 SysCall: Added support for UnicodeCollationProtocol in User space. 2025-01-09 19:49:16 +03:00
Mikhail Krichanov
ce3bfc7754 SysCall: Refactored Core wrappers to allow support for multiple User space drivers. 2025-01-09 15:42:04 +03:00
Mikhail Krichanov
241c5143b4 Ring3: Added support for AARCH64 User page table. 2024-12-16 18:10:18 +03:00
Mikhail Krichanov
0ba3936b28 SysCall: Removed superfluous User attributes settings. 2024-12-05 12:28:28 +03:00
Mikhail Krichanov
58038f62ad SysCall: Disabled global pages, set User page table attibutes in
paging syscalls.
2024-11-29 11:35:26 +03:00
Mikhail Krichanov
a29bd72a05 SysCall: Refactored SysCallReturnToCore handling to fix CLANGDWARF NOOPT. 2024-09-09 11:48:53 +03:00
Mikhail Krichanov
d74b97ed94 Core/Dxe: Refactored DisableSMAP(), EnableSMAP() names. 2024-09-03 13:24:22 +03:00
Mikhail Krichanov
d8aa9c3ea7 Core/Dxe: Changed line ending to Windows style. 2024-09-03 13:24:22 +03:00
Mikhail Krichanov
ab600336fb Ring3: Fixed arguments alignment bug for ARM. 2024-09-03 13:21:21 +03:00
Mikhail Krichanov
6201352b42 SysCall: Added sanity checks. 2024-09-03 13:21:20 +03:00
Mikhail Krichanov
de4229c371 SysCall: Fixed uninitialized variable. 2024-09-03 13:21:20 +03:00
Mikhail Krichanov
9bb63c464b Ring3: Refactored SysCallBootService() out of EFI_BOOT_SERVICES. 2024-09-03 13:21:20 +03:00
Mikhail Krichanov
c5d244956e Ring3: Defined SysCallReturnToCore for AARCH64,
forbade ExceptionHanlders to use EL0 stack.
2024-09-03 13:21:20 +03:00
Mikhail Krichanov
c542f9f3b0 Ring3: Fixed some page faults caused by wrong memory attribution. 2024-09-03 13:21:20 +03:00
Mikhail Krichanov
d03b93be3d Ring3: Defined SysCallBootService() for AARCH64. 2024-09-03 13:21:20 +03:00
Mikhail Krichanov
2f5a386490 Ring3: Fixed bug in Ring3LocateHandleBuffer(),
added SysCallNames.
2024-09-03 13:19:17 +03:00
Mikhail Krichanov
5339dcdfe3 Ring3: Moved UINT64 arguments to the end of argument list to fix IA32 stack. 2024-09-03 13:19:17 +03:00
Mikhail Krichanov
703dea11b3 SysCall: Fixed memory corruption in IA32. 2024-09-03 13:19:17 +03:00
Mikhail Krichanov
233e9e0a23 SysCall: Fixed MdeModulePkg compilation for VS2019. 2024-09-03 13:19:16 +03:00
Mikhail Krichanov
7e372019d2 MdeModulePkg: Fixed MdeModulePkg compilation. 2024-09-03 13:19:16 +03:00
Mikhail Krichanov
85fcc4774c Ring3: Added FreeProtocolsList(). 2024-09-03 13:19:16 +03:00
Mikhail Krichanov
98b973a762 SysCall: Fixed UnicodeFatToStr wrapper. 2024-09-03 13:19:16 +03:00
Mikhail Krichanov
6c366a9d5f Ring3: Added SysCallCalculateCrc32 wrapper. 2024-09-03 13:19:16 +03:00
Mikhail Krichanov
7144df121c SysCall: Fixed UnicodeCollation wrappers. 2024-09-03 13:19:15 +03:00
Mikhail Krichanov
e6d42f6e5a SysCall: Refactored protocols handling. 2024-09-03 13:19:15 +03:00
Mikhail Krichanov
43483580fb Ring3: Fixed Ring3LocateHandleBuffer(). 2024-09-03 13:19:15 +03:00
Mikhail Krichanov
996bc3c55f Ring3: Added SysCallGetVariable wrapper. 2024-09-03 13:19:15 +03:00
Mikhail Krichanov
83d58a276c Ring3: Added UnicodeCollationProtocol wrappers. 2024-09-03 13:19:15 +03:00
Mikhail Krichanov
d4bdb042e1 Ring3: Added debug printings and some fixes for FAT wrappers. 2024-09-03 13:19:15 +03:00
Mikhail Krichanov
8f29742b72 SysCall: Refactored data segment selectors' switching. 2024-09-03 13:19:15 +03:00
Mikhail Krichanov
eb0a233529 SysCall: Added checks of user variables. 2024-09-03 13:19:15 +03:00
Mikhail Krichanov
d4f5ae14aa Ring3: Refactored out AllocateRing3Copy(). 2024-09-03 13:19:14 +03:00
Mikhail Krichanov
94017d9567 Ring3: Added PrepareRing3Interface(). 2024-09-03 13:19:14 +03:00
Mikhail Krichanov
c855d93030 SysCall: Fixed bug in BlockIo, DiskIo Write functions. 2024-09-03 13:19:14 +03:00
Mikhail Krichanov
07188c19a8 Ring3: Added MemoryPoolLib into DxeRing3. 2024-09-03 13:19:14 +03:00
Mikhail Krichanov
126b21b719 Ring3: Added SysCallHandleProtocol and
SIMPLE_FILE_SYSTEM_PROTOCOL wrapper.
2024-09-03 13:10:47 +03:00