From 3b63fd000ae61799ebfe704a6811df4a0e60630d Mon Sep 17 00:00:00 2001 From: Fredrik Holmqvist Date: Mon, 23 Aug 2021 21:52:49 +0200 Subject: [PATCH] WIP: Rewrote arm64 arch_kernel_args.h based on arm FDT and UART is disabled until later in the port --- .../kernel/arch/arm64/arch_kernel_args.h | 29 ++++++++++++------- 1 file changed, 19 insertions(+), 10 deletions(-) diff --git a/headers/private/kernel/arch/arm64/arch_kernel_args.h b/headers/private/kernel/arch/arm64/arch_kernel_args.h index 66c844465e..81b080b0ab 100644 --- a/headers/private/kernel/arch/arm64/arch_kernel_args.h +++ b/headers/private/kernel/arch/arm64/arch_kernel_args.h @@ -1,19 +1,28 @@ /* - * Copyright 2018, Jaroslaw Pelczar - * Distributed under the terms of the MIT License. - */ -#ifndef _KERNEL_ARCH_ARM64_ARCH_KERNEL_ARGS_H_ -#define _KERNEL_ARCH_ARM64_ARCH_KERNEL_ARGS_H_ - +** Copyright 2021 Haiku, Inc. All rights reserved. +** Distributed under the terms of the MIT License. +*/ +#ifndef KERNEL_ARCH_ARM64_KERNEL_ARGS_H +#define KERNEL_ARCH_ARM64_KERNEL_ARGS_H #ifndef KERNEL_BOOT_KERNEL_ARGS_H # error This file is included from only #endif +#include +#include + + +#define _PACKED __attribute__((packed)) + + typedef struct { - int nothing_yet; -} arch_kernel_args; + // needed for UEFI, otherwise kernel acpi support can't find ACPI root + FixedWidthPointer acpi_root; +// TODO: Deal with this later in the port +// FixedWidthPointer fdt; +// uart_info uart; +} _PACKED arch_kernel_args; - -#endif /* _KERNEL_ARCH_ARM64_ARCH_KERNEL_ARGS_H_ */ +#endif /* KERNEL_ARCH_ARM64_KERNEL_ARGS_H */