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_RISCV64_KERNEL_ARGS_H 6 #define KERNEL_ARCH_RISCV64_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 15 16 #define _PACKED __attribute__((packed)) 17 18 #define MAX_VIRTUAL_RANGES_TO_KEEP 32 19 20 21 // kernel args 22 typedef struct { 23 // The virtual ranges we want to keep in the kernel. 24 uint32 num_virtual_ranges_to_keep; 25 addr_range virtual_ranges_to_keep[MAX_VIRTUAL_RANGES_TO_KEEP]; 26 27 // needed for UEFI, otherwise kernel acpi support can't find ACPI root 28 FixedWidthPointer<void> acpi_root; 29 FixedWidthPointer<void> fdt; 30 } _PACKED arch_kernel_args; 31 32 #endif /* KERNEL_ARCH_RISCV64_KERNEL_ARGS_H */ 33