2 * This file setups defines to compile arch specific binary from the
5 * The function 'LIBUNWIND__ARCH_REG_ID' name is set according to arch
6 * name and the defination of this function is included directly from
7 * 'arch/arm64/util/unwind-libunwind.c', to make sure that this function
8 * is defined no matter what arch the host is.
10 * Finally, the arch specific unwind methods are exported which will
11 * be assigned to each arm64 thread.
14 #define REMOTE_UNWIND_LIBUNWIND
16 #define LIBUNWIND__ARCH_REG_ID(regnum) libunwind__arm64_reg_id(regnum)
20 #include "libunwind-aarch64.h"
21 #include <../../../../arch/arm64/include/uapi/asm/perf_regs.h>
22 #include "../../arch/arm64/util/unwind-libunwind.c"
24 /* NO_LIBUNWIND_DEBUG_FRAME is a feature flag for local libunwind,
25 * assign NO_LIBUNWIND_DEBUG_FRAME_AARCH64 to it for compiling arm64
28 #undef NO_LIBUNWIND_DEBUG_FRAME
29 #ifdef NO_LIBUNWIND_DEBUG_FRAME_AARCH64
30 #define NO_LIBUNWIND_DEBUG_FRAME
32 #include "util/unwind-libunwind-local.c"
34 struct unwind_libunwind_ops *
35 arm64_unwind_libunwind_ops = &_unwind_libunwind_ops;