mirror of
https://github.com/RGBCube/serenity
synced 2025-06-05 22:58:12 +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!
12 lines
220 B
C++
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;
|
|
}
|