Added new platform_kernel_args - might need an arch dependent part as well, though.
Only stage2_args.h can now include platform_stage2_args.h. Only kernel_args.h can now include platform_kernel_args.h. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4960 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
79dd9caf61
commit
bf25fe99f6
@ -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_PLATFORM_OPENFIRMWARE_ARCH_H
|
||||||
|
#define KERNEL_BOOT_PLATFORM_OPENFIRMWARE_ARCH_H
|
||||||
|
|
||||||
|
|
||||||
|
#include <SupportDefs.h>
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
extern status_t arch_mmu_init(void);
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif /* KERNEL_BOOT_PLATFORM_OPENFIRMWARE_ARCH_H */
|
@ -0,0 +1,23 @@
|
|||||||
|
/*
|
||||||
|
** 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_KERNEL_ARGS_H
|
||||||
|
#define KERNEL_BOOT_PLATFORM_OPENFIRMWARE_KERNEL_ARGS_H
|
||||||
|
|
||||||
|
#ifndef KERNEL_BOOT_KERNEL_ARGS_H
|
||||||
|
# error This file is included from <boot/kernel_args.h> only
|
||||||
|
#endif
|
||||||
|
|
||||||
|
// must match SMP_MAX_CPUS in arch_smp.h
|
||||||
|
#define MAX_BOOT_CPUS 4
|
||||||
|
#define MAX_PHYSICAL_MEMORY_RANGE 4
|
||||||
|
#define MAX_PHYSICAL_ALLOCATED_RANGE 8
|
||||||
|
#define MAX_VIRTUAL_ALLOCATED_RANGE 32
|
||||||
|
|
||||||
|
|
||||||
|
typedef struct {
|
||||||
|
void *openfirmware_entry;
|
||||||
|
} platform_kernel_args;
|
||||||
|
|
||||||
|
#endif /* KERNEL_BOOT_PLATFORM_OPENFIRMWARE_KERNEL_ARGS_H */
|
@ -2,10 +2,14 @@
|
|||||||
** Copyright 2003, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
|
** Copyright 2003, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
|
||||||
** Distributed under the terms of the OpenBeOS License.
|
** Distributed under the terms of the OpenBeOS License.
|
||||||
*/
|
*/
|
||||||
#ifndef KERNEL_BOOT_PLATFORM_OPENFIRMWARE_STAGE2_H
|
#ifndef KERNEL_BOOT_PLATFORM_OPENFIRMWARE_STAGE2_ARGS_H
|
||||||
#define KERNEL_BOOT_PLATFORM_OPENFIRMWARE_STAGE2_H
|
#define KERNEL_BOOT_PLATFORM_OPENFIRMWARE_STAGE2_ARGS_H
|
||||||
|
|
||||||
|
#ifndef KERNEL_BOOT_STAGE2_ARGS_H
|
||||||
|
# error This file is included from <boot/stage2_args.h> only
|
||||||
|
#endif
|
||||||
|
|
||||||
struct platform_stage2_args {
|
struct platform_stage2_args {
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif /* KERNEL_BOOT_PLATFORM_OPENFIRMWARE_STAGE2_H */
|
#endif /* KERNEL_BOOT_PLATFORM_OPENFIRMWARE_STAGE2_ARGS_H */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user