mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-24 02:12:09 -05:00
97e0d75bcb
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;
|
|
}
|