ptrace.h (9b031c86506cef9acae45e61339fcf9deaabb793) ptrace.h (71e193d7cbcfc988c3802e15261bd807171adb6b)
1/* SPDX-License-Identifier: GPL-2.0 */
2// Copyright (C) 2018 Hangzhou C-SKY Microsystems co.,ltd.
3
4#ifndef __ASM_CSKY_PTRACE_H
5#define __ASM_CSKY_PTRACE_H
6
7#include <uapi/asm/ptrace.h>
8#include <asm/traps.h>

--- 38 unchanged lines hidden (view full) ---

47 regs->sr &= ~(0xff << 16);
48}
49
50static inline unsigned long regs_return_value(struct pt_regs *regs)
51{
52 return regs->a0;
53}
54
1/* SPDX-License-Identifier: GPL-2.0 */
2// Copyright (C) 2018 Hangzhou C-SKY Microsystems co.,ltd.
3
4#ifndef __ASM_CSKY_PTRACE_H
5#define __ASM_CSKY_PTRACE_H
6
7#include <uapi/asm/ptrace.h>
8#include <asm/traps.h>

--- 38 unchanged lines hidden (view full) ---

47 regs->sr &= ~(0xff << 16);
48}
49
50static inline unsigned long regs_return_value(struct pt_regs *regs)
51{
52 return regs->a0;
53}
54
55static inline void regs_set_return_value(struct pt_regs *regs,
56 unsigned long val)
57{
58 regs->a0 = val;
59}
60
55/* Valid only for Kernel mode traps. */
56static inline unsigned long kernel_stack_pointer(struct pt_regs *regs)
57{
58 return regs->usp;
59}
60
61static inline unsigned long frame_pointer(struct pt_regs *regs)
62{

--- 32 unchanged lines hidden ---
61/* Valid only for Kernel mode traps. */
62static inline unsigned long kernel_stack_pointer(struct pt_regs *regs)
63{
64 return regs->usp;
65}
66
67static inline unsigned long frame_pointer(struct pt_regs *regs)
68{

--- 32 unchanged lines hidden ---