mirror of
https://review.haiku-os.org/haiku
synced 2025-01-31 10:47:14 +01:00
0aeb55c8ac
Change-Id: Ice2be644142b646205648f44fb5bce5e9848e69d Reviewed-on: https://review.haiku-os.org/c/haiku/+/6192 Reviewed-by: Fredrik Holmqvist <fredrik.holmqvist@gmail.com> Tested-by: Automation <automation@haiku-os.org>
46 lines
1.1 KiB
C
46 lines
1.1 KiB
C
/*
|
|
** Copyright 2003, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
|
|
** Distributed under the terms of the MIT License.
|
|
*/
|
|
#ifndef KERNEL_ARCH_ARM_KERNEL_ARGS_H
|
|
#define KERNEL_ARCH_ARM_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>
|
|
#include <boot/interrupt_controller.h>
|
|
#include <boot/timer.h>
|
|
#include <boot/uart.h>
|
|
|
|
|
|
#define _PACKED __attribute__((packed))
|
|
|
|
#define MAX_VIRTUAL_RANGES_TO_KEEP 32
|
|
|
|
|
|
// kernel args
|
|
typedef struct {
|
|
// architecture specific
|
|
uint32 phys_pgdir;
|
|
uint32 vir_pgdir;
|
|
uint32 next_pagetable;
|
|
uint32 last_pagetable;
|
|
|
|
// 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;
|
|
|
|
uart_info uart;
|
|
intc_info interrupt_controller;
|
|
boot_timer_info timer;
|
|
} _PACKED arch_kernel_args;
|
|
|
|
#endif /* KERNEL_ARCH_ARM_KERNEL_ARGS_H */
|