ARM: boot: pass boot disk identifier
This to stop the vfs_boot.cpp code from complaining.
This commit is contained in:
parent
6a66acded8
commit
89f89a07e1
@ -5,10 +5,12 @@
|
||||
|
||||
|
||||
#include <KernelExport.h>
|
||||
#include <boot/platform.h>
|
||||
|
||||
#include <boot/disk_identifier.h>
|
||||
#include <boot/vfs.h>
|
||||
#include <boot/stdio.h>
|
||||
#include <boot/platform.h>
|
||||
#include <boot/stage2.h>
|
||||
#include <boot/stdio.h>
|
||||
|
||||
#define TRACE_DEVICES
|
||||
#ifdef TRACE_DEVICES
|
||||
@ -73,6 +75,18 @@ platform_add_block_devices(stage2_args *args, NodeList *devicesList)
|
||||
status_t
|
||||
platform_register_boot_device(Node *device)
|
||||
{
|
||||
TRACE("platform_register_boot_device\n");
|
||||
disk_identifier disk_ident;
|
||||
disk_ident.bus_type = UNKNOWN_BUS;
|
||||
disk_ident.device_type = UNKNOWN_DEVICE;
|
||||
disk_ident.device.unknown.size = device->Size();
|
||||
|
||||
for (int32 i = 0; i < NUM_DISK_CHECK_SUMS; i++) {
|
||||
disk_ident.device.unknown.check_sums[i].offset = -1;
|
||||
disk_ident.device.unknown.check_sums[i].sum = 0;
|
||||
}
|
||||
|
||||
gBootVolume.SetData(BOOT_VOLUME_DISK_IDENTIFIER, B_RAW_TYPE,
|
||||
&disk_ident, sizeof(disk_ident));
|
||||
|
||||
return B_OK;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user