linux-user/arm: Create target_ptrace.h
Move the target_pt_regs structure from target_syscall.h. Replace the array with proper structure fields. Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
ff22166d3f
commit
db58f1667e
2 changed files with 16 additions and 8 deletions
16
linux-user/arm/target_ptrace.h
Normal file
16
linux-user/arm/target_ptrace.h
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
||||
|
||||
#ifndef ARM_TARGET_PTRACE_H
|
||||
#define ARM_TARGET_PTRACE_H
|
||||
|
||||
/*
|
||||
* See arch/arm/include/uapi/asm/ptrace.h.
|
||||
* Instead of an array and ARM_xx defines, use proper fields.
|
||||
*/
|
||||
struct target_pt_regs {
|
||||
abi_ulong regs[16];
|
||||
abi_ulong cpsr;
|
||||
abi_ulong orig_r0;
|
||||
};
|
||||
|
||||
#endif /* ARM_TARGET_PTRACE_H */
|
||||
|
|
@ -1,14 +1,6 @@
|
|||
#ifndef ARM_TARGET_SYSCALL_H
|
||||
#define ARM_TARGET_SYSCALL_H
|
||||
|
||||
/* this struct defines the way the registers are stored on the
|
||||
stack during a system call. */
|
||||
|
||||
/* uregs[0..15] are r0 to r15; uregs[16] is CPSR; uregs[17] is ORIG_r0 */
|
||||
struct target_pt_regs {
|
||||
abi_long uregs[18];
|
||||
};
|
||||
|
||||
#define ARM_SYSCALL_BASE 0x900000
|
||||
#define ARM_THUMB_SYSCALL 0
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue