From 4eedc697c397dc3f9773434a6371c6e834f45df3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Wed, 21 Apr 2004 11:10:32 +0000 Subject: [PATCH] platform_get_boot_partition() will now also get the boot device as parameter. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7284 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/private/kernel/boot/platform.h | 4 ++-- src/kernel/boot/loader/vfs.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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;