VFS mountpoint backing device system
All checks were successful
Build documentation / build-and-deploy (push) Successful in 2m24s

This commit is contained in:
2026-02-16 23:48:45 +01:00
parent 7726fd2f00
commit 9aea870159
22 changed files with 528 additions and 241 deletions

View File

@@ -12,12 +12,14 @@
#include <libk/std.h>
#include <limine/limine.h>
#include <limine/requests.h>
#include <m/ramdisk_device.h>
#include <mm/liballoc.h>
#include <mm/pmm.h>
#include <proc/proc.h>
#include <sys/debug.h>
#include <sys/mm.h>
#include <sys/smp.h>
#include <sys/spin.h>
#include <sys/syscall.h>
#include <sys/time.h>
#include <uacpi/uacpi.h>
@@ -49,7 +51,19 @@ void bootmain (void) {
devices_init ();
vfs_init ();
vfs_create_mountpoint ("ramdisk", VFS_RAMDISKFS);
bool reschedule = false;
struct device* ramdisk_device = device_find (RAMDISK_DEVICE);
struct device_op_ctx op_ctx = {
.proc = NULL,
.reschedule_cpu = NULL,
.reschedule = &reschedule,
};
int ret = vfs_create_mountpoint ("ramdisk", VFS_TARFS, ramdisk_device, &op_ctx);
if (ret < 0) {
DEBUG ("could not mount ramdisk! (%d)\n", ret);
spin ();
}
smp_init ();