ladybird/Kernel/_test.cpp
Andreas Kling e4afa2a041 Tweak _test.o to use the putch() syscall.
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!
2018-10-22 11:53:59 +02:00

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;
}