xref: /haiku/headers/private/kernel/arch/arm/arch_kernel_args.h (revision 3d4afef9cba2f328e238089d4609d00d4b1524f3)
1 /*
2 ** Copyright 2003, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
3 ** Distributed under the terms of the MIT License.
4 */
5 #ifndef KERNEL_ARCH_ARM_KERNEL_ARGS_H
6 #define KERNEL_ARCH_ARM_KERNEL_ARGS_H
7 
8 #ifndef KERNEL_BOOT_KERNEL_ARGS_H
9 #	error This file is included from <boot/kernel_args.h> only
10 #endif
11 
12 
13 #include <util/FixedWidthPointer.h>
14 #include <boot/uart.h>
15 
16 
17 #define _PACKED __attribute__((packed))
18 
19 
20 // kernel args
21 typedef struct {
22 	int		cpu_type;
23 	int		fpu_type;
24 	int		mmu_type;
25 	int		platform;
26 	int		machine; // platform specific machine type
27 
28 	// architecture specific
29 	uint32	phys_pgdir;
30 	uint32	vir_pgdir;
31 	uint32	next_pagetable;
32 
33 	// needed for UEFI, otherwise kernel acpi support can't find ACPI root
34 	FixedWidthPointer<void> acpi_root;
35 	FixedWidthPointer<void> fdt;
36 
37 	uart_info	uart;
38 } _PACKED arch_kernel_args;
39 
40 #endif	/* KERNEL_ARCH_ARM_KERNEL_ARGS_H */
41