25a7b01d15
Additional changes: * Add src/system/kernel/lib/zlib, which builds a kernel version of zlib, needed by packagefs. * BuildFeatures: Add a build feature "gcc2" to allow for easier checks. * Referenceable.cpp: Include <OS.h> instead of <debugger.h>. The latter is not needed and prevents building for the build platform. * zlib/zutil.h: Fix gcc 2 build. We really should use the external package instead. Conflicts: .gitignore build/jam/BuildSetup build/jam/FileRules build/jam/FloppyBootImage build/jam/HaikuImage build/jam/ImageRules build/jam/KernelRules build/jam/NetBootArchive build/jam/OptionalBuildFeatures build/jam/OptionalLibPackages build/jam/OptionalPackageDependencies build/jam/OptionalPackages build/scripts/build_haiku_image configure data/bin/installoptionalpackage data/system/boot/Bootscript headers/os/app/Message.h headers/os/package/PackageInfo.h headers/os/package/PackageInfoAttributes.h headers/os/package/PackageInfoSet.h headers/os/package/PackageRoster.h headers/os/package/PackageVersion.h headers/os/package/hpkg/PackageInfoAttributeValue.h headers/os/storage/FindDirectory.h headers/os/storage/Node.h headers/os/support/StringList.h headers/private/system/directories.h src/add-ons/kernel/drivers/audio/ac97/es1370/Jamfile src/add-ons/kernel/file_systems/packagefs/AttributeIndex.cpp src/add-ons/kernel/file_systems/packagefs/Jamfile src/add-ons/kernel/file_systems/packagefs/Package.cpp src/add-ons/kernel/file_systems/packagefs/Package.h src/add-ons/kernel/file_systems/packagefs/PackageDomain.cpp src/add-ons/kernel/file_systems/packagefs/PackageDomain.h src/add-ons/kernel/file_systems/packagefs/PackageFSRoot.cpp src/add-ons/kernel/file_systems/packagefs/PackageLinkDirectory.cpp src/add-ons/kernel/file_systems/packagefs/PackageLinkDirectory.h src/add-ons/kernel/file_systems/packagefs/PackageLinkSymlink.cpp src/add-ons/kernel/file_systems/packagefs/PackageLinkSymlink.h src/add-ons/kernel/file_systems/packagefs/PackageLinksDirectory.cpp src/add-ons/kernel/file_systems/packagefs/PackageNode.h src/add-ons/kernel/file_systems/packagefs/ResolvableFamily.cpp src/add-ons/kernel/file_systems/packagefs/Version.cpp src/add-ons/kernel/file_systems/packagefs/Version.h src/add-ons/kernel/file_systems/packagefs/Volume.cpp src/add-ons/kernel/file_systems/packagefs/Volume.h src/add-ons/kernel/file_systems/packagefs/kernel_interface.cpp src/add-ons/kernel/file_systems/userlandfs/shared/driver_settings.c src/apps/deskbar/BarApp.cpp src/apps/deskbar/BarMenuBar.cpp src/apps/deskbar/BarMenuBar.h src/apps/deskbar/BarView.cpp src/apps/deskbar/BarView.h src/apps/deskbar/BarWindow.cpp src/apps/deskbar/BarWindow.h src/apps/deskbar/DeskbarMenu.cpp src/apps/deskbar/DeskbarMenu.h src/apps/deskbar/DeskbarUtils.cpp src/apps/deskbar/DeskbarUtils.h src/apps/deskbar/ExpandoMenuBar.cpp src/apps/deskbar/ExpandoMenuBar.h src/apps/deskbar/TeamMenu.cpp src/apps/processcontroller/ProcessController.cpp src/apps/remotedesktop/RemoteDesktop.cpp src/bin/bash/config-top.h src/bin/finddir.c src/bin/package/Jamfile src/bin/package/command_add.cpp src/bin/package/command_create.cpp src/bin/package/command_list.cpp src/bin/package_repo/command_list.cpp src/bin/pkgman/command_refresh.cpp src/build/libbe/support/Jamfile src/build/libpackage/Jamfile src/build/libroot/Jamfile src/build/libroot/fs.cpp src/build/libroot/remapped_functions.h src/kits/locale/MutableLocaleRoster.cpp src/kits/opengl/GLRendererRoster.cpp src/kits/package/PackageInfo.cpp src/kits/package/PackageInfoSet.cpp src/kits/package/PackageRoster.cpp src/kits/package/PackageVersion.cpp src/kits/package/RepositoryCache.cpp src/kits/package/hpkg/PackageWriterImpl.cpp src/kits/package/hpkg/ReaderImplBase.cpp src/kits/package/hpkg/WriterImplBase.cpp src/kits/print/PrintTransport.cpp src/kits/print/Printer.cpp src/kits/screensaver/ScreenSaverRunner.cpp src/kits/support/StringList.cpp src/kits/tracker/ContainerWindow.cpp src/kits/tracker/DeskWindow.cpp src/kits/tracker/PoseView.cpp src/libs/print/libprint/Transport.cpp src/preferences/printers/AddPrinterDialog.cpp src/preferences/screensaver/ScreenSaverWindow.cpp src/servers/debug/DebugServer.cpp src/servers/input/AddOnManager.cpp src/servers/media_addon/MediaAddonServer.cpp src/system/boot/Jamfile src/system/boot/loader/Jamfile src/system/boot/loader/loader.cpp src/system/boot/loader/vfs.cpp src/system/kernel/fs/vfs.cpp src/system/kernel/fs/vfs_boot.cpp src/system/libroot/os/find_directory.cpp src/system/runtime_loader/runtime_loader.cpp src/tools/package/Jamfile
97 lines
2.4 KiB
C
97 lines
2.4 KiB
C
/*
|
|
* Copyright 2002-2009, Axel Dörfler, axeld@pinc-software.de.
|
|
* Distributed under the terms of the MIT License.
|
|
*
|
|
* Copyright 2001-2002, Travis Geiselbrecht. All rights reserved.
|
|
* Distributed under the terms of the NewOS License.
|
|
*/
|
|
#ifndef KERNEL_BOOT_KERNEL_ARGS_H
|
|
#define KERNEL_BOOT_KERNEL_ARGS_H
|
|
|
|
|
|
#include <SupportDefs.h>
|
|
|
|
#include <boot/elf.h>
|
|
#include <boot/disk_identifier.h>
|
|
#include <boot/driver_settings.h>
|
|
|
|
#include <platform_kernel_args.h>
|
|
#include <arch_kernel_args.h>
|
|
|
|
#include <util/FixedWidthPointer.h>
|
|
|
|
|
|
#define CURRENT_KERNEL_ARGS_VERSION 1
|
|
#define MAX_KERNEL_ARGS_RANGE 20
|
|
|
|
// names of common boot_volume fields
|
|
#define BOOT_METHOD "boot method"
|
|
#define BOOT_VOLUME_USER_SELECTED "user selected"
|
|
#define BOOT_VOLUME_BOOTED_FROM_IMAGE "booted from image"
|
|
#define BOOT_VOLUME_PACKAGED "packaged"
|
|
#define BOOT_VOLUME_PARTITION_OFFSET "partition offset"
|
|
#define BOOT_VOLUME_DISK_IDENTIFIER "disk identifier"
|
|
|
|
// boot methods
|
|
enum {
|
|
BOOT_METHOD_HARD_DISK = 0,
|
|
BOOT_METHOD_CD = 1,
|
|
BOOT_METHOD_NET = 2,
|
|
|
|
BOOT_METHOD_DEFAULT = BOOT_METHOD_HARD_DISK
|
|
};
|
|
|
|
typedef struct kernel_args {
|
|
uint32 kernel_args_size;
|
|
uint32 version;
|
|
|
|
FixedWidthPointer<struct preloaded_image> kernel_image;
|
|
FixedWidthPointer<struct preloaded_image> preloaded_images;
|
|
|
|
uint32 num_physical_memory_ranges;
|
|
addr_range physical_memory_range[MAX_PHYSICAL_MEMORY_RANGE];
|
|
uint32 num_physical_allocated_ranges;
|
|
addr_range physical_allocated_range[MAX_PHYSICAL_ALLOCATED_RANGE];
|
|
uint32 num_virtual_allocated_ranges;
|
|
addr_range virtual_allocated_range[MAX_VIRTUAL_ALLOCATED_RANGE];
|
|
uint32 num_kernel_args_ranges;
|
|
addr_range kernel_args_range[MAX_KERNEL_ARGS_RANGE];
|
|
uint64 ignored_physical_memory;
|
|
|
|
uint32 num_cpus;
|
|
addr_range cpu_kstack[MAX_BOOT_CPUS];
|
|
|
|
// boot volume KMessage data
|
|
FixedWidthPointer<void> boot_volume;
|
|
int32 boot_volume_size;
|
|
|
|
FixedWidthPointer<struct driver_settings_file> driver_settings;
|
|
|
|
struct {
|
|
addr_range physical_buffer;
|
|
uint32 bytes_per_row;
|
|
uint16 width;
|
|
uint16 height;
|
|
uint8 depth;
|
|
bool enabled;
|
|
} frame_buffer;
|
|
|
|
FixedWidthPointer<void> vesa_modes;
|
|
uint16 vesa_modes_size;
|
|
uint8 vesa_capabilities;
|
|
FixedWidthPointer<void> edid_info;
|
|
|
|
FixedWidthPointer<void> debug_output;
|
|
uint32 debug_size;
|
|
bool keep_debug_output_buffer;
|
|
|
|
platform_kernel_args platform_args;
|
|
arch_kernel_args arch_args;
|
|
|
|
// bootsplash data
|
|
FixedWidthPointer<uint8> boot_splash;
|
|
|
|
} _PACKED kernel_args;
|
|
|
|
#endif /* KERNEL_BOOT_KERNEL_ARGS_H */
|