diff options
author | Benji Dial <benji@benjidial.net> | 2024-01-20 17:59:40 -0500 |
---|---|---|
committer | Benji Dial <benji@benjidial.net> | 2024-01-20 17:59:40 -0500 |
commit | 7199e74aa22e592a3b77bdd81f735edca5470596 (patch) | |
tree | 66e935372acc5d6e013f764965f2a9d81814f809 /libraries/euler/entry.cpp | |
parent | 53135e2592c21cb9b2609bf95242aaf1f19233da (diff) | |
download | hilbert-os-7199e74aa22e592a3b77bdd81f735edca5470596.tar.gz |
update
Diffstat (limited to 'libraries/euler/entry.cpp')
-rw-r--r-- | libraries/euler/entry.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/libraries/euler/entry.cpp b/libraries/euler/entry.cpp new file mode 100644 index 0000000..0bbffda --- /dev/null +++ b/libraries/euler/entry.cpp @@ -0,0 +1,19 @@ +#include <euler/syscall.hpp> + +int main(int argc, char **argv); + +extern "C" [[noreturn]] void _entry() { + + //TODO: static constructors + + //TODO: get command line via system call and populate argc and argv. + int argc = 0; + char **argv = 0; + + int result = main(argc, argv); + + //TODO: static destructors + + _syscall_end_this_process(result); + +} |