mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:57:35 +00:00
Add a simple ELF binary called _test.o to the test fs.
This commit is contained in:
parent
f67d695254
commit
5b10846bed
3 changed files with 20 additions and 0 deletions
12
Kernel/_test.cpp
Normal file
12
Kernel/_test.cpp
Normal file
|
@ -0,0 +1,12 @@
|
|||
#include "Userspace.cpp"
|
||||
|
||||
using namespace Userspace;
|
||||
|
||||
int elf_entry()
|
||||
{
|
||||
int fd = open("/Banner.txt");
|
||||
char buf[2048];
|
||||
int nread = read(fd, buf, sizeof(buf));
|
||||
buf[nread] = '\0';
|
||||
return 0;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue