syscalls: make execve and vfs_read_file_by_path use follow_path, fix vfs_read_file_by_path name, fix execve-related pagefault

This commit is contained in:
2025-10-07 23:41:55 +03:00
parent 8c26f54d28
commit 88c1936e83
5 changed files with 11 additions and 14 deletions
+4 -4
View File
@@ -131,12 +131,12 @@ void kmain(unsigned int magic, unsigned int info)
mount_fs();
l9660_dir* dir = (l9660_dir*)malloc(sizeof(l9660_dir));
l9660_file* file = (l9660_file*)malloc(sizeof(l9660_file));
l9660_dir dir;
l9660_file file;
follow_path("/katau/core.", file, dir);
follow_path("/katau/caller.", &file, &dir);
exec_from_file(file, ".");
exec_from_file(&file, ".");
while(1)
{