mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-10 13:00:29 +03:00
e4afa2a041
It's still running in kernel space. Once I make it possible for ELFLoader to set up a ring 3 task, we'll really be cooking!
16 lines
287 B
C++
16 lines
287 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';
|
|
for (int i = 0; i < nread; ++i) {
|
|
putch(buf[i]);
|
|
}
|
|
return 0;
|
|
}
|