mirror of
https://github.com/decompals/wibo.git
synced 2025-12-12 14:46:09 +00:00
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
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
#include "entry.h"
|
||||
#include "entry_trampolines.h"
|
||||
#include "files.h"
|
||||
#include "heap.h"
|
||||
#include "modules.h"
|
||||
#include "processes.h"
|
||||
#include "strutil.h"
|
||||
@@ -501,10 +502,7 @@ int main(int argc, char **argv) {
|
||||
kernel32::setLastError(0);
|
||||
|
||||
// Invoke the damn thing
|
||||
{
|
||||
GUEST_CONTEXT_GUARD(&tib);
|
||||
call_EntryProc(entryPoint);
|
||||
}
|
||||
call_EntryProc(entryPoint);
|
||||
DEBUG_LOG("We came back\n");
|
||||
wibo::shutdownModuleRegistry();
|
||||
wibo::tls::cleanupTib(&tib);
|
||||
|
||||
Reference in New Issue
Block a user