Commit Graph

19 Commits

Author SHA1 Message Date
6c4f332705 Improve synchapi impls; fix heap races & 64-bit fixes 2025-11-10 18:15:33 -07:00
3dd9fb77ff Experimental 64-bit host support 2025-11-06 19:14:48 -07:00
463686d01a GlobalAlloc: Add VirtualAlloc fallback for large sizes 2025-11-04 00:15:26 -07:00
4dc599381f Refactor memory management into wibo::heap
- Removes blockUpper2GB hack; we now start early in the process
  and reserve all (available) space in the lower 2GB address
  space, leaving the upper 2GB untouched for host code
- All virtual memory operations flow through wibo::heap for
  bookkeeping
- All guest code uses a guest mimalloc area + thread-local heaps
  reserved in the guest address space
2025-11-03 13:58:33 -07:00
52cdd7c811 Fully functional guest<->host trampolines 2025-10-31 00:45:32 -06:00
55a62a27c9 Initial guest-to-host trampoline generation 2025-10-30 02:23:09 -06:00
9367f003c5 Refactor to use TIB LastErrorValue 2025-10-28 10:01:21 -06:00
166b9036fd Dont set ERROR_SUCCESS generally
Turns out we should only be setting this in a select few cases.
2025-10-06 00:03:10 -06:00
0d76e541c1 Reorg headers, module_registry -> modules, remove ActCtx msvcr80.dll hack 2025-10-05 17:46:16 -06:00
b87fb5e472 Implement some ActCtx functions for msvcr80.dll 2025-10-05 15:52:38 -06:00
0bc80b6618 Split into HostContextGuard/GuestContextGuard 2025-10-05 14:32:06 -06:00
cd7baffc5e Save/restore fs/gs segments when re-entering host code 2025-10-05 13:58:40 -06:00
cf7ea70fac Some Atom function impls 2025-10-04 14:58:35 -06:00
ffdfa38591 Actually add to ProcessManager when spawning 2025-10-04 14:12:24 -06:00
390f26b28d New handles, threading and processes subsystems 2025-10-04 13:31:26 -06:00
d8150e33b9 Rework thread TIB handling & DLL initialization handling 2025-10-02 16:40:23 -06:00
8330f27479 Add CreatePipe, CON* support for CreateFileA, more for cygwin 2025-10-02 09:47:41 -06:00
2cbd624119 Split kernel32 into separate files (part 3) 2025-10-02 01:02:26 -06:00
fa3ed4893a Split kernel32 into separate files (part 2) 2025-10-02 00:20:28 -06:00