Spawn Processes using memory primitives rather than and elf loader.
This allows us to remove the temporary syscall for that style of process spawn.
This commit is contained in:
parent
b06c76e477
commit
23895b5c6c
26 changed files with 403 additions and 94 deletions
|
|
@ -8,7 +8,7 @@ add_executable(test
|
|||
)
|
||||
|
||||
target_link_libraries(test
|
||||
zion_lib)
|
||||
mammoth_lib)
|
||||
|
||||
set_target_properties(test
|
||||
PROPERTIES
|
||||
|
|
|
|||
14
sys/test.cpp
14
sys/test.cpp
|
|
@ -1,15 +1,11 @@
|
|||
#include <zcall.h>
|
||||
#include <zerrors.h>
|
||||
#include <mammoth/debug.h>
|
||||
#include <mammoth/process.h>
|
||||
|
||||
constexpr uint64_t prog2 = 0x00000020'00000000;
|
||||
|
||||
int main() {
|
||||
ZDebug("Testing");
|
||||
uint64_t err = ZProcessSpawnElf(Z_INIT_PROC_SELF, prog2, 0x2000);
|
||||
if (err != Z_OK) {
|
||||
ZDebug("Error");
|
||||
} else {
|
||||
ZDebug("Return");
|
||||
}
|
||||
dbgln("Testing");
|
||||
check(SpawnProcessFromElfRegion(prog2));
|
||||
dbgln("Return");
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue