mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +00: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!
15 lines
287 B
C++
15 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;
|
|
}
|