ladybird/LibC/entry.cpp
Andreas Kling b824f15619 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.
2018-10-22 15:43:02 +02:00

14 lines
269 B
C++

#include <Kernel/Syscall.h>
extern "C" int main(int, char**);
extern "C" int _start()
{
// FIXME: Pass appropriate argc/argv.
int status = main(0, nullptr);
Syscall::invoke(Syscall::PosixExit, status);
// Birger's birthday <3
return 20150614;
}