Some work on the boot disk identification: the kernel_args structure has
now fields that carry information about the boot disk and partition. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9956 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
/*
|
||||
* Copyright 2004, Axel Dörfler, [email protected].
|
||||
* Distributed under the terms of the MIT License.
|
||||
*/
|
||||
#ifndef KERNEL_BOOT_PLATFORM_BIOS_IA32_BIOS_DRIVE_H
|
||||
#define KERNEL_BOOT_PLATFORM_BIOS_IA32_BIOS_DRIVE_H
|
||||
|
||||
|
||||
#include <boot/disk_identifier.h>
|
||||
|
||||
|
||||
typedef struct bios_drive {
|
||||
struct bios_drive *next;
|
||||
uint16 drive_number;
|
||||
disk_identifier identifier;
|
||||
} bios_drive;
|
||||
|
||||
#endif /* KERNEL_BOOT_PLATFORM_BIOS_IA32_BIOS_DRIVE_H */
|
||||
@@ -1,7 +1,7 @@
|
||||
/*
|
||||
** Copyright 2003-2004, Axel Dörfler, [email protected]. All rights reserved.
|
||||
** Distributed under the terms of the Haiku License.
|
||||
*/
|
||||
* Copyright 2003-2004, Axel Dörfler, [email protected].
|
||||
* Distributed under the terms of the MIT License.
|
||||
*/
|
||||
#ifndef KERNEL_BOOT_PLATFORM_BIOS_IA32_KERNEL_ARGS_H
|
||||
#define KERNEL_BOOT_PLATFORM_BIOS_IA32_KERNEL_ARGS_H
|
||||
|
||||
@@ -9,6 +9,9 @@
|
||||
# error This file is included from <boot/kernel_args.h> only
|
||||
#endif
|
||||
|
||||
#include <bios_drive.h>
|
||||
|
||||
|
||||
// must match SMP_MAX_CPUS in arch_smp.h
|
||||
#define MAX_BOOT_CPUS 4
|
||||
#define MAX_PHYSICAL_MEMORY_RANGE 4
|
||||
@@ -18,7 +21,10 @@
|
||||
#define MAX_SERIAL_PORTS 4
|
||||
|
||||
typedef struct {
|
||||
uint16 serial_base_ports[MAX_SERIAL_PORTS];
|
||||
uint16 serial_base_ports[MAX_SERIAL_PORTS];
|
||||
|
||||
uint16 boot_drive_number;
|
||||
bios_drive *drives; // this does not contain the boot drive
|
||||
} platform_kernel_args;
|
||||
|
||||
#endif /* KERNEL_BOOT_PLATFORM_BIOS_IA32_KERNEL_ARGS_H */
|
||||
|
||||
Reference in New Issue
Block a user