1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-01 03:18:11 +00:00

Launching an arbitrary ELF executable from disk works! :^)

This is so cool! It's a bit messy now with two Task constructors,
but eventually they should fold into a single constructor somehow.
This commit is contained in:
Andreas Kling 2018-10-22 15:42:39 +02:00
parent befeabd8fe
commit b824f15619
10 changed files with 141 additions and 16 deletions

View file

@ -5,7 +5,9 @@ extern "C" int main(int, char**);
extern "C" int _start()
{
// FIXME: Pass appropriate argc/argv.
main(0, nullptr);
int status = main(0, nullptr);
Syscall::invoke(Syscall::PosixExit, status);
// Birger's birthday <3
return 20150614;