2019-02-26 02:02:50 +03:00
|
|
|
/*
|
|
|
|
** Copyright 2003, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
|
|
|
|
** Distributed under the terms of the MIT License.
|
|
|
|
*/
|
|
|
|
#ifndef KERNEL_ARCH_RISCV64_KERNEL_ARGS_H
|
|
|
|
#define KERNEL_ARCH_RISCV64_KERNEL_ARGS_H
|
|
|
|
|
|
|
|
#ifndef KERNEL_BOOT_KERNEL_ARGS_H
|
|
|
|
# error This file is included from <boot/kernel_args.h> only
|
|
|
|
#endif
|
|
|
|
|
2020-02-05 23:04:08 +03:00
|
|
|
|
|
|
|
#include <util/FixedWidthPointer.h>
|
|
|
|
|
|
|
|
|
2019-04-04 22:20:14 +03:00
|
|
|
#define _PACKED __attribute__((packed))
|
|
|
|
|
|
|
|
#define MAX_VIRTUAL_RANGES_TO_KEEP 32
|
|
|
|
|
|
|
|
|
2019-02-26 02:02:50 +03:00
|
|
|
// kernel args
|
|
|
|
typedef struct {
|
2019-04-04 22:20:14 +03:00
|
|
|
// The virtual ranges we want to keep in the kernel.
|
|
|
|
uint32 num_virtual_ranges_to_keep;
|
|
|
|
addr_range virtual_ranges_to_keep[MAX_VIRTUAL_RANGES_TO_KEEP];
|
2020-02-05 23:04:08 +03:00
|
|
|
|
|
|
|
// needed for UEFI, otherwise kernel acpi support can't find ACPI root
|
|
|
|
FixedWidthPointer<void> acpi_root;
|
2021-04-22 20:15:57 +03:00
|
|
|
FixedWidthPointer<void> fdt;
|
2020-02-05 23:04:08 +03:00
|
|
|
} _PACKED arch_kernel_args;
|
2019-02-26 02:02:50 +03:00
|
|
|
|
|
|
|
#endif /* KERNEL_ARCH_RISCV64_KERNEL_ARGS_H */
|