The boot loader does now set the names of the images it loads to the
full paths. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27665 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
6aa2c9ecf1
commit
b34e395eaf
@ -423,6 +423,10 @@ elf_load_image(Directory *directory, const char *path)
|
|||||||
|
|
||||||
status_t status = elf_load_image(fd, image);
|
status_t status = elf_load_image(fd, image);
|
||||||
if (status == B_OK) {
|
if (status == B_OK) {
|
||||||
|
char tmpPath[B_PATH_NAME_LENGTH];
|
||||||
|
if (directory->GetPath(path, tmpPath, sizeof(tmpPath)) == B_OK)
|
||||||
|
image->name = kernel_args_strdup(tmpPath);
|
||||||
|
else
|
||||||
image->name = kernel_args_strdup(path);
|
image->name = kernel_args_strdup(path);
|
||||||
image->inode = stat.st_ino;
|
image->inode = stat.st_ino;
|
||||||
|
|
||||||
|
@ -75,6 +75,12 @@ load_kernel(stage2_args *args, Directory *volume)
|
|||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
char tmpPath[B_PATH_NAME_LENGTH];
|
||||||
|
if (volume->GetPath(KERNEL_PATH, tmpPath, sizeof(tmpPath)) == B_OK)
|
||||||
|
gKernelArgs.kernel_image.name = kernel_args_strdup(tmpPath);
|
||||||
|
else
|
||||||
|
gKernelArgs.kernel_image.name = kernel_args_strdup("kernel");
|
||||||
|
|
||||||
return B_OK;
|
return B_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4052,8 +4052,6 @@ vm_init(kernel_args *args)
|
|||||||
|
|
||||||
allocate_kernel_args(args);
|
allocate_kernel_args(args);
|
||||||
|
|
||||||
args->kernel_image.name = "kernel";
|
|
||||||
// the lazy boot loader currently doesn't set the kernel's name...
|
|
||||||
create_preloaded_image_areas(&args->kernel_image);
|
create_preloaded_image_areas(&args->kernel_image);
|
||||||
|
|
||||||
// allocate areas for preloaded images
|
// allocate areas for preloaded images
|
||||||
|
Loading…
Reference in New Issue
Block a user