From 59eb57ae5857ec565e1eb1f7b242b41aaf5997d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Tue, 24 Jun 2003 17:22:11 +0000 Subject: [PATCH] Some work-in-progress headers that are needed to build the heap test. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3639 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/private/kernel/boot/heap.h | 22 +++++++++++++++ headers/private/kernel/boot/platform.h | 28 +++++++++++++++++++ .../openfirmware/platform_stage2_args.h | 11 ++++++++ headers/private/kernel/boot/stage2_args.h | 15 ++++++++++ 4 files changed, 76 insertions(+) create mode 100644 headers/private/kernel/boot/heap.h create mode 100644 headers/private/kernel/boot/platform.h create mode 100644 headers/private/kernel/boot/platform/openfirmware/platform_stage2_args.h create mode 100644 headers/private/kernel/boot/stage2_args.h diff --git a/headers/private/kernel/boot/heap.h b/headers/private/kernel/boot/heap.h new file mode 100644 index 0000000000..b17f7a5f4d --- /dev/null +++ b/headers/private/kernel/boot/heap.h @@ -0,0 +1,22 @@ +/* +** Copyright 2003, Axel Dörfler, axeld@pinc-software.de. All rights reserved. +** Distributed under the terms of the OpenBeOS License. +*/ +#ifndef KERNEL_BOOT_HEAP_H +#define KERNEL_BOOT_HEAP_H + +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +extern void heap_release(void); +extern status_t heap_init(struct stage2_args *args); + +#ifdef __cplusplus +} +#endif + +#endif /* KERNEL_BOOT_HEAP_H */ diff --git a/headers/private/kernel/boot/platform.h b/headers/private/kernel/boot/platform.h new file mode 100644 index 0000000000..42d1fadda7 --- /dev/null +++ b/headers/private/kernel/boot/platform.h @@ -0,0 +1,28 @@ +/* +** Copyright 2003, Axel Dörfler, axeld@pinc-software.de. All rights reserved. +** Distributed under the terms of the OpenBeOS License. +*/ +#ifndef KERNEL_BOOT_PLATFORM_H +#define KERNEL_BOOT_PLATFORM_H + + +#include +#include + + +struct stage2_args; + +#ifdef __cplusplus +extern "C" { +#endif + +extern void panic(const char *format, ...); +extern status_t platform_get_boot_devices(struct stage2_args *args, struct list *devicesList); +extern void platform_release_heap(void *base); +extern status_t platform_init_heap(struct stage2_args *args, void **_base, void **_top); + +#ifdef __cplusplus +} +#endif + +#endif /* KERNEL_BOOT_PLATFORM_H */ diff --git a/headers/private/kernel/boot/platform/openfirmware/platform_stage2_args.h b/headers/private/kernel/boot/platform/openfirmware/platform_stage2_args.h new file mode 100644 index 0000000000..2920dbc5f9 --- /dev/null +++ b/headers/private/kernel/boot/platform/openfirmware/platform_stage2_args.h @@ -0,0 +1,11 @@ +/* +** Copyright 2003, Axel Dörfler, axeld@pinc-software.de. All rights reserved. +** Distributed under the terms of the OpenBeOS License. +*/ +#ifndef KERNEL_BOOT_PLATFORM_OPENFIRMWARE_STAGE2_H +#define KERNEL_BOOT_PLATFORM_OPENFIRMWARE_STAGE2_H + +struct platform_stage2_args { +}; + +#endif /* KERNEL_BOOT_PLATFORM_OPENFIRMWARE_STAGE2_H */ diff --git a/headers/private/kernel/boot/stage2_args.h b/headers/private/kernel/boot/stage2_args.h new file mode 100644 index 0000000000..fb5488cee9 --- /dev/null +++ b/headers/private/kernel/boot/stage2_args.h @@ -0,0 +1,15 @@ +/* +** Copyright 2003, Axel Dörfler, axeld@pinc-software.de. All rights reserved. +** Distributed under the terms of the OpenBeOS License. +*/ +#ifndef KERNEL_BOOT_STAGE2_ARGS_H +#define KERNEL_BOOT_STAGE2_ARGS_H + +#include +#include + +typedef struct stage2_args { + struct platform_stage2_args platform; +} stage2_args ; + +#endif /* KERNEL_BOOT_STAGE2_ARGS_H */