Squashed backup commit (no shallow-clone history issues) of xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2 branch, upstream commit 9eece662e) plus all fixes applied to get everpal_defconfig building clean against a modern (GCC 15.2.0) toolchain -- see the previous commit message on the lineage-23.2 branch (also in this repo history is not available here since this is a squashed snapshot; full incremental history lives in the local DL380 checkout and the upstream GitHub remote). Upstream: https://github.com/xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2)
29 lines
803 B
C
29 lines
803 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/* written by Philipp Rumpf, Copyright (C) 1999 SuSE GmbH Nuernberg
|
|
** Copyright (C) 2000 Grant Grundler, Hewlett-Packard
|
|
*/
|
|
#ifndef _PARISC_PTRACE_H
|
|
#define _PARISC_PTRACE_H
|
|
|
|
#include <uapi/asm/ptrace.h>
|
|
|
|
|
|
#define task_regs(task) ((struct pt_regs *) ((char *)(task) + TASK_REGS))
|
|
|
|
#define arch_has_single_step() 1
|
|
#define arch_has_block_step() 1
|
|
|
|
/* XXX should we use iaoq[1] or iaoq[0] ? */
|
|
#define user_mode(regs) (((regs)->iaoq[0] & 3) ? 1 : 0)
|
|
#define user_space(regs) (((regs)->iasq[1] != 0) ? 1 : 0)
|
|
#define instruction_pointer(regs) ((regs)->iaoq[0] & ~3)
|
|
#define user_stack_pointer(regs) ((regs)->gr[30])
|
|
unsigned long profile_pc(struct pt_regs *);
|
|
|
|
static inline unsigned long regs_return_value(struct pt_regs *regs)
|
|
{
|
|
return regs->gr[28];
|
|
}
|
|
|
|
#endif
|