fs: add ramfs

This commit is contained in:
Michael Shaw 2026-05-12 07:31:17 -04:00
commit 750ffa2e16
13 changed files with 355 additions and 55 deletions

View file

@ -24,8 +24,17 @@
#define P_STACK_SIZE 0x8000
typedef void (*initcall_t)(void);
extern initcall_t __initcall_start, __initcall_end;
struct tty *tty_printf = NULL;
static void do_initcalls()
{
for (initcall_t *fn = &__initcall_start; fn < &__initcall_end; fn++)
(*fn)();
}
static void kmain()
{
/* data types */
@ -50,7 +59,9 @@ static void kmain()
arch_init();
page_init();
pci_init();
do_initcalls();
krdy("Welcome to vbos!\n" COL_RESET);
yield();