2009-07-27 20:23:08 +04:00
|
|
|
/*
|
|
|
|
** Copyright 2003, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
|
2017-02-10 06:03:59 +03:00
|
|
|
** Distributed under the terms of the MIT License.
|
2009-07-27 20:23:08 +04:00
|
|
|
*/
|
2009-08-13 22:57:36 +04:00
|
|
|
#ifndef KERNEL_ARCH_ARM_KERNEL_ARGS_H
|
|
|
|
#define KERNEL_ARCH_ARM_KERNEL_ARGS_H
|
2009-07-27 20:23:08 +04:00
|
|
|
|
|
|
|
#ifndef KERNEL_BOOT_KERNEL_ARGS_H
|
|
|
|
# error This file is included from <boot/kernel_args.h> only
|
|
|
|
#endif
|
|
|
|
|
2020-02-21 23:26:56 +03:00
|
|
|
|
|
|
|
#include <util/FixedWidthPointer.h>
|
2021-08-18 03:03:21 +03:00
|
|
|
#include <boot/uart.h>
|
2020-02-21 23:26:56 +03:00
|
|
|
|
|
|
|
|
|
|
|
#define _PACKED __attribute__((packed))
|
|
|
|
|
2021-08-18 03:03:21 +03:00
|
|
|
|
2009-07-27 20:23:08 +04:00
|
|
|
// kernel args
|
|
|
|
typedef struct {
|
2021-08-18 03:03:21 +03:00
|
|
|
int cpu_type;
|
|
|
|
int fpu_type;
|
|
|
|
int mmu_type;
|
|
|
|
int platform;
|
|
|
|
int machine; // platform specific machine type
|
2011-03-14 16:48:21 +03:00
|
|
|
|
2009-07-27 20:23:08 +04:00
|
|
|
// architecture specific
|
2020-02-21 23:26:56 +03:00
|
|
|
uint32 phys_pgdir;
|
|
|
|
uint32 vir_pgdir;
|
|
|
|
uint32 next_pagetable;
|
|
|
|
|
|
|
|
// needed for UEFI, otherwise kernel acpi support can't find ACPI root
|
|
|
|
FixedWidthPointer<void> acpi_root;
|
2020-12-21 22:09:24 +03:00
|
|
|
FixedWidthPointer<void> fdt;
|
2021-08-18 03:03:21 +03:00
|
|
|
|
|
|
|
uart_info uart;
|
2020-02-21 23:26:56 +03:00
|
|
|
} _PACKED arch_kernel_args;
|
2009-07-27 20:23:08 +04:00
|
|
|
|
2009-08-13 22:57:36 +04:00
|
|
|
#endif /* KERNEL_ARCH_ARM_KERNEL_ARGS_H */
|