continue working on implementing lib9660 into the kernel

This commit is contained in:
2025-08-16 19:41:48 +03:00
parent 287ac77422
commit ce6e9642ee
10 changed files with 151 additions and 53 deletions
-1
View File
@@ -11,7 +11,6 @@ typedef struct {
} disk_info;
void get_disk_info(disk_info *info);
int ide_check_disk_present();
bool ata_read(uint8_t *buffer, uint32_t lba);
bool ata_write(const uint8_t *buffer, uint32_t lba);
+2 -1
View File
@@ -1,5 +1,6 @@
#include "../include/fat.h"
#include "../include/elf.h"
#include "../include/stdio.h"
#include "../include/vfs.h"
#include "../include/lib9660.h"
void exec_from_file(const char* filename, const char* dirname);
+3 -3
View File
@@ -2,7 +2,7 @@
#define TASK_H
#include <stdint.h>
#include "../include/fat.h"
#include "../include/lib9660.h"
// Сегменты для ядра и пользователя
#define SEG_KCODE 0x08 // Сегмент кода ядра
@@ -64,8 +64,8 @@ typedef struct Process
uint32_t ring; // Уровень привилегий (0 или 3)
struct Process* next; // Следующий процесс
file_t* file_descriptors[MAX_OPEN_FILES];
dir_t* cwd;
l9660_file* file_descriptors[MAX_OPEN_FILES];
l9660_dir* cwd;
void* brk;
} Process;
+16
View File
@@ -0,0 +1,16 @@
#ifndef VFS_H
#define VFS_H
#include <stdbool.h>
#include "../include/atapi.h"
#include "../include/lib9660.h"
extern l9660_fs global_fs;
bool read_sector_callback(l9660_fs *fs, void *buf, uint32_t sector);
void mount_fs();
void list_files(l9660_dir *dir);
size_t vfs_read_file(l9660_file *file, uint8_t* buffer);
#endif