VFS can now reschedule the calling process
All checks were successful
Build documentation / build-and-deploy (push) Successful in 2m48s
All checks were successful
Build documentation / build-and-deploy (push) Successful in 2m48s
This commit is contained in:
@@ -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 ();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user