[victoria] Create and start VictoriaFalls process

This commit is contained in:
Drew Galbraith 2023-06-22 00:22:59 -07:00
parent dc63084d61
commit f0e8ce14a4
12 changed files with 66 additions and 16 deletions

View file

@ -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)

View 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}"
)

View 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;
}

View file

@ -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;
}