/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ #ifndef _UAPI_ASMAXP_PTRACE_H #define _UAPI_ASMAXP_PTRACE_H
/* * This struct defines the way the registers are stored on the * kernel stack during a system call or other kernel entry * * NOTE! I want to minimize the overhead of system calls, so this * struct has as little information as possible. It does not have * * - floating point regs: the kernel doesn't change those * - r9-15: saved by the C compiler * * This makes "fork()" and "exec()" a bit more complex, but should * give us low system call latency.
*/
struct pt_regs { unsignedlong r0; unsignedlong r1; unsignedlong r2; unsignedlong r3; unsignedlong r4; unsignedlong r5; unsignedlong r6; unsignedlong r7; unsignedlong r8; unsignedlong r19; unsignedlong r20; unsignedlong r21; unsignedlong r22; unsignedlong r23; unsignedlong r24; unsignedlong r25; unsignedlong r26; unsignedlong r27; unsignedlong r28; unsignedlong hae; /* JRP - These are the values provided to a0-a2 by PALcode */ unsignedlong trap_a0; unsignedlong trap_a1; unsignedlong trap_a2; /* This makes the stack 16-byte aligned as GCC expects */ unsignedlong __pad0; /* These are saved by PAL-code: */ unsignedlong ps; unsignedlong pc; unsignedlong gp; unsignedlong r16; unsignedlong r17; unsignedlong r18;
};
/* * This is the extended stack used by signal handlers and the context * switcher: it's pushed after the normal "struct pt_regs".
*/ struct switch_stack { unsignedlong r9; unsignedlong r10; unsignedlong r11; unsignedlong r12; unsignedlong r13; unsignedlong r14; unsignedlong r15; unsignedlong r26; #ifndef __KERNEL__ unsignedlong fp[32]; /* fp[31] is fpcr */ #endif
};
#endif/* _UAPI_ASMAXP_PTRACE_H */
Messung V0.5
¤ Dauer der Verarbeitung: 0.11 Sekunden
(vorverarbeitet)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.