revert between 56095 -> 55830 in arch
[AROS.git] / arch / m68k-mac / include / exec / ptrace.h
blobf6e44619387456e1128dfcdcf2e8ce65a2202193
1 /*
2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #ifndef ASM_PTRACE_H
7 #define ASM_PTRACE_H
9 /*
10 This struct defines the way the registers are stored on the
11 stack during a system call.
12 Now you might think that the order is arbitrary, but in reality it
13 is not! The highest ones, sr & pc, are from the exception frame and
14 should also remain like that!
17 struct pt_regs {
18 long usp;
19 long d0;
20 long d1;
21 long d2;
22 long d3;
23 long d4;
24 long d5;
25 long d6;
26 long d7;
27 long a0;
28 long a1;
29 long a2;
30 long a3;
31 long a4;
32 long a5;
33 long a6;
34 unsigned short sr;
35 long pc;
36 } __attribute__((packed));
38 #define user_mode(regs) (0 == ((1 << 13) & (regs)->sr))
40 #endif