ladybird/Kernel/_test.cpp
Andreas Kling 97e0d75bcb ELFLoader works inside the kernel!
We load /_hello.o which just prints out a simple message.
It executes inside the kernel itself, so no fancy userspace process
or anything, but this is still so cool!
2018-10-18 15:46:08 +02:00

12 lines
220 B
C++

#include "Userspace.cpp"
using namespace Userspace;
extern "C" int elf_entry()
{
int fd = open("/Banner.txt");
char buf[2048];
int nread = read(fd, buf, sizeof(buf));
buf[nread] = '\0';
return 0;
}