VFS can now reschedule the calling process
All checks were successful
Build documentation / build-and-deploy (push) Successful in 2m48s

This commit is contained in:
2026-03-11 19:07:22 +01:00
parent e765855309
commit 04b7355a3d
10 changed files with 196 additions and 120 deletions

View File

@@ -15,6 +15,7 @@
#include <fs_types.h>
#include <irq/irq.h>
#include <libk/std.h>
#include <libk/string.h>
#include <limine/limine.h>
#include <limine/requests.h>
#include <mm/liballoc.h>
@@ -65,11 +66,14 @@ void bootmain (void) {
devices_init ();
vfs_init ();
struct reschedule_ctx rctx;
memset (&rctx, 0, sizeof (rctx));
struct device* rd0 = device_find ("RD0");
vfs_create_volume ("RD", FS_TARFS, rd0, false);
vfs_create_volume (thiscpu->kproc, &rctx, "RD", FS_TARFS, rd0, false);
struct device* temp0 = device_find ("TEMP0");
vfs_create_volume ("TEMP", FS_FAT16, temp0, true);
vfs_create_volume (thiscpu->kproc, &rctx, "TEMP", FS_FAT16, temp0, true);
smp_init ();