1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 04:17:35 +00:00

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!
This commit is contained in:
Andreas Kling 2018-10-18 15:38:04 +02:00
parent 6ab0649ad6
commit 97e0d75bcb
10 changed files with 72 additions and 15 deletions

7
Kernel/_hello.cpp Normal file
View file

@ -0,0 +1,7 @@
extern "C" int puts(const char*);
extern "C" int elf_entry()
{
puts("Home, where you are supposed to be...");
return 0;
}