drm/panel: panel-himax-hx83102: support for csot-pna957qt1-1 MIPI-DSI panel
[drm/drm-misc.git] / tools / perf / util / libunwind / x86_32.c
blob1697dece1b74316c7e95305a3fd12f0f3655cb71
1 // SPDX-License-Identifier: GPL-2.0
2 /*
3 * This file setups defines to compile arch specific binary from the
4 * generic one.
6 * The function 'LIBUNWIND__ARCH_REG_ID' name is set according to arch
7 * name and the definition of this function is included directly from
8 * 'arch/x86/util/unwind-libunwind.c', to make sure that this function
9 * is defined no matter what arch the host is.
11 * Finally, the arch specific unwind methods are exported which will
12 * be assigned to each x86 thread.
15 #define REMOTE_UNWIND_LIBUNWIND
17 /* Define arch specific functions & regs for libunwind, should be
18 * defined before including "unwind.h"
20 #define LIBUNWIND__ARCH_REG_ID(regnum) libunwind__x86_reg_id(regnum)
22 #include "unwind.h"
23 #include "libunwind-x86.h"
24 #include <../../../../arch/x86/include/uapi/asm/perf_regs.h>
26 /* HAVE_ARCH_X86_64_SUPPORT is used in'arch/x86/util/unwind-libunwind.c'
27 * for x86_32, we undef it to compile code for x86_32 only.
29 #undef HAVE_ARCH_X86_64_SUPPORT
30 #include "../../arch/x86/util/unwind-libunwind.c"
32 /* Explicitly define NO_LIBUNWIND_DEBUG_FRAME, because non-ARM has no
33 * dwarf_find_debug_frame() function.
35 #ifndef NO_LIBUNWIND_DEBUG_FRAME
36 #define NO_LIBUNWIND_DEBUG_FRAME
37 #endif
38 #include "util/unwind-libunwind-local.c"
40 struct unwind_libunwind_ops *
41 x86_32_unwind_libunwind_ops = &_unwind_libunwind_ops;