Link: https://lore.kernel.org/r/20260217200002.683975158@linuxfoundation.org Tested-by: Florian Fainelli <florian.fainelli@broadcom.com> Tested-by: Takeshi Ogasawara <takeshi.ogasawara@futuring-girl.com> Tested-by: Peter Schneider <pschneider1968@googlemail.com> Tested-by: Jon Hunter <jonathanh@nvidia.com> Tested-by: Salvatore Bonaccorso <carnil@debian.org> Tested-by: Brett A C Sheffield <bacs@librecast.net> Tested-by: Mark Brown <broonie@kernel.org> Tested-by: Luna Jernberg <droidbittin@gmail.com> Tested-by: Ronald Warsow <rwarsow@gmx.de> Tested-by: Justin M. Forbes <jforbes@fedoraproject.org> Tested-by: Ron Economos <re@w6rz.net> Tested-by: Miguel Ojeda <ojeda@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
26 lines
650 B
C
26 lines
650 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef __ARM64_ASM_SIGNAL_H
|
|
#define __ARM64_ASM_SIGNAL_H
|
|
|
|
#include <asm/memory.h>
|
|
#include <uapi/asm/signal.h>
|
|
#include <uapi/asm/siginfo.h>
|
|
|
|
static inline void __user *arch_untagged_si_addr(void __user *addr,
|
|
unsigned long sig,
|
|
unsigned long si_code)
|
|
{
|
|
/*
|
|
* For historical reasons, all bits of the fault address are exposed as
|
|
* address bits for watchpoint exceptions. New architectures should
|
|
* handle the tag bits consistently.
|
|
*/
|
|
if (sig == SIGTRAP && si_code == TRAP_BRKPT)
|
|
return addr;
|
|
|
|
return untagged_addr(addr);
|
|
}
|
|
#define arch_untagged_si_addr arch_untagged_si_addr
|
|
|
|
#endif
|