mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-25 02:40:49 +00:00
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!
13 lines
220 B
C++
13 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;
|
|
}
|