Get the second process elf from a MemoryObject instead of hardcoding.

Allows us to delete the CopyIntoNonResidentProcess function and simply
rely on the MemoryObject copy functions.
This commit is contained in:
Drew Galbraith 2023-06-07 00:19:15 -07:00
parent eb454300e6
commit e246f28d9c
7 changed files with 24 additions and 45 deletions

View file

@ -16,7 +16,6 @@
#define ZC_PROC_SPAWN_THREAD 0x101
#define Z_INIT_PROC_SELF 0x1
#define Z_INIT_AS_SELF 0x2
// Thread Calls.
#define Z_THREAD_CREATE 0x10
@ -27,8 +26,12 @@
#define Z_ADDRESS_SPACE_MAP 0x21
#define Z_ADDRESS_SPACE_UNMAP 0x22
#define Z_INIT_AS_SELF 0x20
#define Z_MEMORY_OBJECT_CREATE 0x30
#define Z_INIT_BOOT_VMMO 0x31
// Debugging Calls.
#define Z_DEBUG_PRINT 0x10000000