diff --git a/headers/private/kernel/boot/platform.h b/headers/private/kernel/boot/platform.h index 506bb7553f..d9a823e8e8 100644 --- a/headers/private/kernel/boot/platform.h +++ b/headers/private/kernel/boot/platform.h @@ -45,8 +45,8 @@ namespace boot { // these functions have to be implemented in C++ extern status_t platform_get_boot_device(struct stage2_args *args, Node **_device); extern status_t platform_add_block_devices(struct stage2_args *args, NodeList *devicesList); -extern status_t platform_get_boot_partition(struct stage2_args *args, NodeList *partitions, - boot::Partition **_partition); +extern status_t platform_get_boot_partition(struct stage2_args *args, Node *bootDevice, + NodeList *partitions, boot::Partition **_partition); #endif diff --git a/src/kernel/boot/loader/vfs.cpp b/src/kernel/boot/loader/vfs.cpp index 068b0ba98c..c8f5fd4083 100644 --- a/src/kernel/boot/loader/vfs.cpp +++ b/src/kernel/boot/loader/vfs.cpp @@ -313,7 +313,7 @@ get_boot_file_system(stage2_args *args) return NULL; Partition *partition; - if (platform_get_boot_partition(args, &gPartitions, &partition) < B_OK) + if (platform_get_boot_partition(args, device, &gPartitions, &partition) < B_OK) return NULL; Directory *fileSystem;