[victoria] Create and start VictoriaFalls process
This commit is contained in:
parent
dc63084d61
commit
f0e8ce14a4
12 changed files with 66 additions and 16 deletions
|
|
@ -1,5 +1,11 @@
|
|||
set(CMAKE_SHARED_LIBRARY_LINK_CXX_FLAGS "")
|
||||
|
||||
add_subdirectory(yellowstone)
|
||||
add_subdirectory(denali)
|
||||
add_subdirectory(victoriafalls)
|
||||
add_subdirectory(yellowstone)
|
||||
|
||||
set(SYS_BUNDLE
|
||||
denali
|
||||
victoriafalls
|
||||
yellowstone)
|
||||
|
||||
|
|
|
|||
16
sys/victoriafalls/CMakeLists.txt
Normal file
16
sys/victoriafalls/CMakeLists.txt
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
add_executable(victoriafalls
|
||||
victoriafalls.cpp)
|
||||
|
||||
target_include_directories(victoriafalls
|
||||
PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/include")
|
||||
|
||||
target_link_libraries(victoriafalls
|
||||
glacier
|
||||
mammoth_lib
|
||||
)
|
||||
|
||||
set_target_properties(victoriafalls PROPERTIES
|
||||
COMPILE_FLAGS "${CMAKE_CXX_FLAGS} ${BASE_COMPILE_FLAGS}"
|
||||
LINK_FLAGS "${CMAKE_EXE_LINK_FLAGS} ${BASE_LINK_FLAGS}"
|
||||
)
|
||||
9
sys/victoriafalls/victoriafalls.cpp
Normal file
9
sys/victoriafalls/victoriafalls.cpp
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
#include <mammoth/debug.h>
|
||||
#include <mammoth/init.h>
|
||||
|
||||
uint64_t main(uint64_t init_cap) {
|
||||
ParseInitPort(init_cap);
|
||||
|
||||
dbgln("VFs Started");
|
||||
return 0;
|
||||
}
|
||||
|
|
@ -28,6 +28,11 @@ uint64_t main(uint64_t port_cap) {
|
|||
|
||||
check(reader.ParsePartitionTables());
|
||||
|
||||
check(ZAddressSpaceMap(gSelfVmasCap, 0, gBootVictoriaFallsVmmoCap, &vaddr));
|
||||
auto error_or = SpawnProcessFromElfRegion(vaddr);
|
||||
if (!error_or) {
|
||||
check(error_or.error());
|
||||
}
|
||||
dbgln("Yellowstone Finished Successfully.");
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue