Rename RD to SYS
All checks were successful
Build documentation / build-and-deploy (push) Successful in 3m40s
All checks were successful
Build documentation / build-and-deploy (push) Successful in 3m40s
This commit is contained in:
@@ -114,7 +114,7 @@ static void terminal_device_init (void) {
|
||||
thiscpu->kproc, &rctx);
|
||||
}
|
||||
|
||||
static void ramdisk_device_init (void) {
|
||||
static void sys_device_init (void) {
|
||||
struct reschedule_ctx rctx;
|
||||
memset (&rctx, 0, sizeof (rctx));
|
||||
|
||||
@@ -128,13 +128,13 @@ static void ramdisk_device_init (void) {
|
||||
|
||||
struct limine_module_response* module = limine_module_request.response;
|
||||
|
||||
const char* ramdisk_path = "/boot/mop3dist.tar.lz4";
|
||||
const char* dist_path = "/boot/mop3dist.tar.lz4";
|
||||
struct limine_file* file = NULL;
|
||||
|
||||
for (size_t i = 0; i < module->module_count; i++) {
|
||||
file = module->modules[i];
|
||||
|
||||
if (strncmp (file->path, ramdisk_path, strlen (ramdisk_path)) == 0)
|
||||
if (strncmp (file->path, dist_path, strlen (dist_path)) == 0)
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -155,7 +155,7 @@ static void ramdisk_device_init (void) {
|
||||
.sector_size = 512,
|
||||
.buffer = unpack_buffer,
|
||||
};
|
||||
device_create ("RD0", ops, lengthof (ops), &ramdrv_init, &ramdrv_fini, &init, thiscpu->kproc,
|
||||
device_create ("SYS0", ops, lengthof (ops), &ramdrv_init, &ramdrv_fini, &init, thiscpu->kproc,
|
||||
&rctx);
|
||||
|
||||
LZ4F_freeDecompressionContext (dctx);
|
||||
@@ -197,7 +197,7 @@ void devices_init (void) {
|
||||
memset (&device_table, 0, sizeof (device_table));
|
||||
|
||||
terminal_device_init ();
|
||||
ramdisk_device_init ();
|
||||
sys_device_init ();
|
||||
temp_device_init ();
|
||||
debugconsole_device_init ();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user