mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
* Add missing Linux headers. Closes #9837 * Update existing headers to latest Linux. * Consolidate headers that are the same for multiple Zig target CPU architectures. For example, Linux has only an x86 directory for both x86_64 and x86 CPU architectures. Now Zig only ships an x86 directory for Linux headers, and will emit the proper corresponding -isystem flags. * tools/update-linux-headers.zig is now available for upgrading to newer Linux headers, and the update process is now documented on the wiki.
51 lines
No EOL
836 B
C
Vendored
51 lines
No EOL
836 B
C
Vendored
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
|
|
|
|
#ifndef _CSKY_PTRACE_H
|
|
#define _CSKY_PTRACE_H
|
|
|
|
#ifndef __ASSEMBLY__
|
|
|
|
struct pt_regs {
|
|
unsigned long tls;
|
|
unsigned long lr;
|
|
unsigned long pc;
|
|
unsigned long sr;
|
|
unsigned long usp;
|
|
|
|
/*
|
|
* a0, a1, a2, a3:
|
|
* abiv1: r2, r3, r4, r5
|
|
* abiv2: r0, r1, r2, r3
|
|
*/
|
|
unsigned long orig_a0;
|
|
unsigned long a0;
|
|
unsigned long a1;
|
|
unsigned long a2;
|
|
unsigned long a3;
|
|
|
|
/*
|
|
* ABIV2: r4 ~ r13
|
|
* ABIV1: r6 ~ r14, r1
|
|
*/
|
|
unsigned long regs[10];
|
|
|
|
#if defined(__CSKYABIV2__)
|
|
/* r16 ~ r30 */
|
|
unsigned long exregs[15];
|
|
|
|
unsigned long rhi;
|
|
unsigned long rlo;
|
|
unsigned long dcsr;
|
|
#endif
|
|
};
|
|
|
|
struct user_fp {
|
|
unsigned long vr[96];
|
|
unsigned long fcr;
|
|
unsigned long fesr;
|
|
unsigned long fid;
|
|
unsigned long reserved;
|
|
};
|
|
|
|
#endif /* __ASSEMBLY__ */
|
|
#endif /* _CSKY_PTRACE_H */ |