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:
+4
-4
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user