Implemented some basic libc functions and a text console

This commit is contained in:
2022-12-21 08:29:33 +00:00
parent f59d67435d
commit 8475a6139e
30 changed files with 1898 additions and 0 deletions

5
init/init.c Normal file
View File

@@ -0,0 +1,5 @@
#include <socks/init.h>
int do_initcalls(void)
{
}

14
init/main.c Normal file
View File

@@ -0,0 +1,14 @@
#include <stdint.h>
#include <socks/libc/stdio.h>
#include <socks/init.h>
#include <socks/console.h>
#include <socks/machine/init.h>
void kernel_init(uintptr_t arg)
{
console_init();
for (int i = 0; i < 20; i++) {
printf("Line %d\n", i);
}
}