rename VD to TEMP

This commit is contained in:
2026-03-01 13:46:39 +01:00
parent e61545c4cf
commit 1571469685
2 changed files with 11 additions and 11 deletions

View File

@@ -61,11 +61,11 @@ void bootmain (void) {
struct device* ramdisk = device_find ("RD"); struct device* ramdisk = device_find ("RD");
vfs_create_volume ("RD", VFS_TARFS, ramdisk, false); vfs_create_volume ("RD", VFS_TARFS, ramdisk, false);
struct device* vdisk = device_find ("VD"); struct device* temp = device_find ("TEMP");
device_probe_partitions (vdisk); device_probe_partitions (temp);
struct device* vdp0 = device_find ("VDp0"); struct device* tempp0 = device_find ("TEMPp0");
vfs_create_volume ("VD", VFS_FAT32, vdp0, true); vfs_create_volume ("TEMP", VFS_FAT32, tempp0, true);
proc_pid_alloc_init (); proc_pid_alloc_init ();
procgroup_pgid_alloc_init (); procgroup_pgid_alloc_init ();

View File

@@ -119,7 +119,7 @@ void ramdisk_device_init (void) {
device_create ("RD", ops, lengthof (ops), &ramdrv_init, &ramdrv_fini, &init); device_create ("RD", ops, lengthof (ops), &ramdrv_init, &ramdrv_fini, &init);
} }
void vdisk_device_init (void) { void temp_device_init (void) {
device_op_func_t ops[] = { device_op_func_t ops[] = {
[XDRV_GET_SIZE] = &ramdrv_get_size, [XDRV_GET_SIZE] = &ramdrv_get_size,
[XDRV_GET_SECTOR_SIZE] = &ramdrv_get_sector_size, [XDRV_GET_SECTOR_SIZE] = &ramdrv_get_sector_size,
@@ -142,15 +142,15 @@ void vdisk_device_init (void) {
mbr.ptes[0].start_lba = 1; mbr.ptes[0].start_lba = 1;
mbr.ptes[0].sector_count = div_align_up (init.total_size, init.sector_size) - 1; mbr.ptes[0].sector_count = div_align_up (init.total_size, init.sector_size) - 1;
struct device* vdisk = struct device* temp =
device_create ("VD", ops, lengthof (ops), &ramdrv_init, &ramdrv_fini, &init); device_create ("TEMP", ops, lengthof (ops), &ramdrv_init, &ramdrv_fini, &init);
size_t sector = 0; size_t sector = 0;
size_t sector_count = 1; size_t sector_count = 1;
spin_lock (&vdisk->lock); spin_lock (&temp->lock);
device_op (vdisk, XDRV_WRITE, NULL, NULL, &sector, &sector_count, &mbr); device_op (temp, XDRV_WRITE, NULL, NULL, &sector, &sector_count, &mbr);
spin_unlock (&vdisk->lock); spin_unlock (&temp->lock);
} }
#if defined(__x86_64__) #if defined(__x86_64__)
@@ -167,7 +167,7 @@ void devices_init (void) {
terminal_device_init (); terminal_device_init ();
ramdisk_device_init (); ramdisk_device_init ();
vdisk_device_init (); temp_device_init ();
#if defined(__x86_64__) #if defined(__x86_64__)
ps2kb_device_init (); ps2kb_device_init ();