Mass rename memory object variables.
Use shorthand: AddressSpace -> vmas MemoryObject -> vmmo The VM prefix makes these a little more distinguishable in code.
This commit is contained in:
parent
a8a4f8d9ab
commit
6c10c57bfa
8 changed files with 53 additions and 49 deletions
|
|
@ -1,6 +1,7 @@
|
|||
#include "include/mammoth/process.h"
|
||||
|
||||
#include <zcall.h>
|
||||
#include <zerrors.h>
|
||||
|
||||
#include "include/mammoth/debug.h"
|
||||
|
||||
|
|
@ -68,7 +69,7 @@ uint64_t LoadElfProgram(uint64_t base, uint64_t as_cap) {
|
|||
|
||||
dbgln("Map Local");
|
||||
uint64_t vaddr;
|
||||
check(ZAddressSpaceMap(Z_INIT_AS_SELF, 0, mem_cap, &vaddr));
|
||||
check(ZAddressSpaceMap(Z_INIT_VMAS_SELF, 0, mem_cap, &vaddr));
|
||||
|
||||
dbgln("Copy");
|
||||
memcpy(base + program.offset, program.filesz, vaddr);
|
||||
|
|
@ -94,4 +95,6 @@ uint64_t SpawnProcessFromElfRegion(uint64_t program) {
|
|||
|
||||
dbgln("Thread start");
|
||||
check(ZThreadStart(thread_cap, entry_point, 0, 0));
|
||||
|
||||
return Z_OK;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue