d407b17b18
Change-Id: I8ebcbaa395cbccb50af08fd2f1b049b5cbb949c7 Reviewed-on: https://review.haiku-os.org/c/haiku/+/3883 Reviewed-by: Fredrik Holmqvist <fredrik.holmqvist@gmail.com> Reviewed-by: Adrien Destugues <pulkomandy@gmail.com> Reviewed-by: X512 <danger_mail@list.ru>
33 lines
851 B
C
33 lines
851 B
C
/*
|
|
** 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
|
|
|
|
|
|
#include <util/FixedWidthPointer.h>
|
|
|
|
|
|
#define _PACKED __attribute__((packed))
|
|
|
|
#define MAX_VIRTUAL_RANGES_TO_KEEP 32
|
|
|
|
|
|
// kernel args
|
|
typedef struct {
|
|
// 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];
|
|
|
|
// needed for UEFI, otherwise kernel acpi support can't find ACPI root
|
|
FixedWidthPointer<void> acpi_root;
|
|
FixedWidthPointer<void> fdt;
|
|
} _PACKED arch_kernel_args;
|
|
|
|
#endif /* KERNEL_ARCH_RISCV64_KERNEL_ARGS_H */
|