Compare commits
No commits in common. "4e25a7e3b9c767c368402f090ea91bfd93b5f704" and "26ab661dbfa59b55a220dc748bd3bf65c34d6ccd" have entirely different histories.
4e25a7e3b9
...
26ab661dbf
|
@ -3,4 +3,3 @@ __pycache__/
|
||||||
compile_commands.json
|
compile_commands.json
|
||||||
|
|
||||||
sysroot/bin
|
sysroot/bin
|
||||||
sysroot/usr/bin
|
|
||||||
|
|
|
@ -15,5 +15,4 @@ set(BASE_LINK_FLAGS "-nostdlib")
|
||||||
add_subdirectory(zion)
|
add_subdirectory(zion)
|
||||||
add_subdirectory(lib)
|
add_subdirectory(lib)
|
||||||
add_subdirectory(yunq)
|
add_subdirectory(yunq)
|
||||||
add_subdirectory(usr)
|
|
||||||
add_subdirectory(sys)
|
add_subdirectory(sys)
|
||||||
|
|
|
@ -3,8 +3,6 @@
|
||||||
#include <glacier/string/str_format.h>
|
#include <glacier/string/str_format.h>
|
||||||
#include <glacier/string/str_split.h>
|
#include <glacier/string/str_split.h>
|
||||||
#include <mammoth/file/file.h>
|
#include <mammoth/file/file.h>
|
||||||
#include <mammoth/proc/process.h>
|
|
||||||
#include <zglobal.h>
|
|
||||||
|
|
||||||
void Terminal::HandleCharacter(char c) {
|
void Terminal::HandleCharacter(char c) {
|
||||||
console_.WriteChar(c);
|
console_.WriteChar(c);
|
||||||
|
@ -60,16 +58,6 @@ void Terminal::ExecuteCommand(const glcr::String& command) {
|
||||||
console_.WriteChar('\n');
|
console_.WriteChar('\n');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if (cmd == "exec") {
|
|
||||||
if (tokens.size() != 2) {
|
|
||||||
console_.WriteString("Provide the name of an executable.\n>");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
auto file = mmth::File::Open(tokens[1]);
|
|
||||||
|
|
||||||
// TODO: Wait until the process exits.
|
|
||||||
mmth::SpawnProcessFromElfRegion((uint64_t)file.raw_ptr(), gInitEndpointCap);
|
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
console_.WriteString("Unknown command: ");
|
console_.WriteString("Unknown command: ");
|
||||||
console_.WriteString(command);
|
console_.WriteString(command);
|
||||||
|
|
|
@ -1,2 +0,0 @@
|
||||||
|
|
||||||
add_subdirectory(testbed)
|
|
|
@ -1,21 +0,0 @@
|
||||||
|
|
||||||
add_executable(testbed
|
|
||||||
test.cpp
|
|
||||||
)
|
|
||||||
|
|
||||||
target_include_directories(testbed
|
|
||||||
PRIVATE ${CMAKE_CURRENT_SOURCE_DIR})
|
|
||||||
|
|
||||||
target_link_libraries(testbed
|
|
||||||
mammoth
|
|
||||||
)
|
|
||||||
|
|
||||||
set(CMAKE_SHARED_LIBRARY_LINK_CXX_FLAGS "")
|
|
||||||
|
|
||||||
set_target_properties(testbed PROPERTIES
|
|
||||||
COMPILE_FLAGS "${CMAKE_CXX_FLAGS} ${BASE_COMPILE_FLAGS}"
|
|
||||||
LINK_FLAGS "${CMAKE_EXE_LINK_FLAGS} ${BASE_LINK_FLAGS}"
|
|
||||||
)
|
|
||||||
|
|
||||||
install(TARGETS testbed DESTINATION usr/bin)
|
|
||||||
|
|
|
@ -1,7 +0,0 @@
|
||||||
#include <mammoth/util/debug.h>
|
|
||||||
|
|
||||||
uint64_t main(uint64_t init_port_cap) {
|
|
||||||
dbgln("testbed");
|
|
||||||
|
|
||||||
return glcr::OK;
|
|
||||||
}
|
|
Loading…
Reference in New Issue