Added SimpleFS read support

This commit is contained in:
Jozef Nagy 2025-01-29 20:05:50 +01:00
parent 758d681005
commit 4ec95a6a52
Signed by untrusted user who does not match committer: crz
GPG key ID: 459A4811CEAC7068
8 changed files with 174 additions and 107 deletions

View file

@ -18,9 +18,22 @@
/*********************************************************************************/
#include <vfs/vfs.h>
#include <mm/mman.h>
#include <print.h>
void axboot_init()
{
vfs_init();
if (!vfs_init("/")) {
debug("axboot_init(): Failed to mount boot drive! Halting...");
// TODO: Halt
while (1);
}
// read kernel -> test read
char *buffer = NULL;
vfs_read("/System/axkrnl", buffer);
mem_free(buffer);
while (1);
}