arm64: Add more headers for code compilation
This makes ARM64 target compile more files. This patch is one of series of patches to support new architecture, as fixes in many places are required just to compile the code. Signed-off-by: Jaroslaw Pelczar <[email protected]> Change-Id: Ia060612733cd3a0fcb781fec449da164ed635b8e Reviewed-on: https://review.haiku-os.org/c/haiku/+/1807 Reviewed-by: Adrien Destugues <[email protected]>
This commit is contained in:
committed by
waddlesplash
parent
ef21ae46d9
commit
1761cb8e6f
@@ -0,0 +1,16 @@
|
||||
/*
|
||||
* Copyright 2019 Haiku, Inc. All Rights Reserved.
|
||||
* Distributed under the terms of the MIT License.
|
||||
*/
|
||||
#ifndef _ARCH_ARM64_DEBUGGER_H
|
||||
#define _ARCH_ARM64_DEBUGGER_H
|
||||
|
||||
struct arm64_debug_cpu_state {
|
||||
unsigned long x[30];
|
||||
unsigned long lr;
|
||||
unsigned long sp;
|
||||
unsigned long elr;
|
||||
unsigned int spsr;
|
||||
} __attribute__((aligned(16)));
|
||||
|
||||
#endif // _ARCH_ARM_DEBUGGER_H
|
||||
@@ -18,6 +18,7 @@
|
||||
#include <arch/m68k/arch_debugger.h>
|
||||
#include <arch/mipsel/arch_debugger.h>
|
||||
#include <arch/arm/arch_debugger.h>
|
||||
#include <arch/arm64/arch_debugger.h>
|
||||
#include <arch/riscv64/arch_debugger.h>
|
||||
#include <arch/sparc/arch_debugger.h>
|
||||
|
||||
@@ -38,6 +39,8 @@
|
||||
typedef struct riscv64_debug_cpu_state debug_cpu_state;
|
||||
#elif defined(__sparc64__)
|
||||
typedef struct sparc_debug_cpu_state debug_cpu_state;
|
||||
#elif defined(__aarch64__) || defined(__arm64__)
|
||||
typedef struct arm64_debug_cpu_state debug_cpu_state;
|
||||
#else
|
||||
#error unsupported architecture
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user