mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-09-03 17:51:23 +00:00

Kernel-internal prototypes, references to current_thread_info() and code hidden behind a CONFIG_HEXAGON_ARCH_VERSION switch are certainly not usable in userspace, so this should not reside in a uapi header. Move the code into an internal version of ptrace.h instead. Signed-off-by: Thomas Huth <thuth@redhat.com> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
26 lines
626 B
C
26 lines
626 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* Ptrace definitions for the Hexagon architecture
|
|
*
|
|
* Copyright (c) 2010-2011, The Linux Foundation. All rights reserved.
|
|
*/
|
|
|
|
#ifndef _ASM_HEXAGON_PTRACE_H
|
|
#define _ASM_HEXAGON_PTRACE_H
|
|
|
|
#include <uapi/asm/ptrace.h>
|
|
|
|
/* kprobe-based event tracer support */
|
|
extern int regs_query_register_offset(const char *name);
|
|
extern const char *regs_query_register_name(unsigned int offset);
|
|
|
|
#define current_pt_regs() \
|
|
((struct pt_regs *) \
|
|
((unsigned long)current_thread_info() + THREAD_SIZE) - 1)
|
|
|
|
#if CONFIG_HEXAGON_ARCH_VERSION >= 4
|
|
#define arch_has_single_step() (1)
|
|
#endif
|
|
|
|
#endif
|