Move sys/test to Yellowstone init process.
This commit is contained in:
parent
6f81520918
commit
7c9d1075eb
8 changed files with 26 additions and 19 deletions
12
sys/yellowstone/CMakeLists.txt
Normal file
12
sys/yellowstone/CMakeLists.txt
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
add_executable(yellowstone
|
||||
yellowstone.cpp)
|
||||
|
||||
target_link_libraries(yellowstone
|
||||
cxx
|
||||
mammoth_lib
|
||||
)
|
||||
|
||||
set_target_properties(yellowstone PROPERTIES
|
||||
COMPILE_FLAGS "${CMAKE_CXX_FLAGS} ${BASE_COMPILE_FLAGS}"
|
||||
LINK_FLAGS "${CMAKE_EXE_LINK_FLAGS} ${BASE_LINK_FLAGS}"
|
||||
)
|
||||
13
sys/yellowstone/yellowstone.cpp
Normal file
13
sys/yellowstone/yellowstone.cpp
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
#include <mammoth/debug.h>
|
||||
#include <mammoth/process.h>
|
||||
#include <zcall.h>
|
||||
|
||||
uint64_t main() {
|
||||
dbgln("Yellowstone Initializing.");
|
||||
uint64_t vaddr;
|
||||
check(ZAddressSpaceMap(Z_INIT_VMAS_SELF, 0, Z_INIT_BOOT_VMMO, &vaddr));
|
||||
check(SpawnProcessFromElfRegion(vaddr));
|
||||
|
||||
dbgln("Yellowstone Finished Successfully.");
|
||||
return 0;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue