WIP: Rewrote arm64 arch_kernel_args.h based on arm
FDT and UART is disabled until later in the port
This commit is contained in:
@@ -1,19 +1,28 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2018, Jaroslaw Pelczar <[email protected]>
|
** Copyright 2021 Haiku, Inc. All rights reserved.
|
||||||
* Distributed under the terms of the MIT License.
|
** Distributed under the terms of the MIT License.
|
||||||
*/
|
*/
|
||||||
#ifndef _KERNEL_ARCH_ARM64_ARCH_KERNEL_ARGS_H_
|
#ifndef KERNEL_ARCH_ARM64_KERNEL_ARGS_H
|
||||||
#define _KERNEL_ARCH_ARM64_ARCH_KERNEL_ARGS_H_
|
#define KERNEL_ARCH_ARM64_KERNEL_ARGS_H
|
||||||
|
|
||||||
|
|
||||||
#ifndef KERNEL_BOOT_KERNEL_ARGS_H
|
#ifndef KERNEL_BOOT_KERNEL_ARGS_H
|
||||||
# error This file is included from <boot/kernel_args.h> only
|
# error This file is included from <boot/kernel_args.h> only
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
#include <util/FixedWidthPointer.h>
|
||||||
|
#include <boot/uart.h>
|
||||||
|
|
||||||
|
|
||||||
|
#define _PACKED __attribute__((packed))
|
||||||
|
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
int nothing_yet;
|
// needed for UEFI, otherwise kernel acpi support can't find ACPI root
|
||||||
} arch_kernel_args;
|
FixedWidthPointer<void> acpi_root;
|
||||||
|
// TODO: Deal with this later in the port
|
||||||
|
// FixedWidthPointer<void> fdt;
|
||||||
|
// uart_info uart;
|
||||||
|
} _PACKED arch_kernel_args;
|
||||||
|
|
||||||
|
#endif /* KERNEL_ARCH_ARM64_KERNEL_ARGS_H */
|
||||||
#endif /* _KERNEL_ARCH_ARM64_ARCH_KERNEL_ARGS_H_ */
|
|
||||||
|
|||||||
Reference in New Issue
Block a user