Markus Armbruster | 3622634 | 2016-06-29 10:47:26 +0200 | [diff] [blame] | 1 | #ifndef CRIS_TARGET_SYSCALL_H |
| 2 | #define CRIS_TARGET_SYSCALL_H |
Paolo Bonzini | cb9c377 | 2012-12-06 12:15:58 +0100 | [diff] [blame] | 3 | |
ths | e69b406 | 2007-10-08 13:35:05 +0000 | [diff] [blame] | 4 | #define UNAME_MACHINE "cris" |
Riku Voipio | cbc14e6 | 2014-02-19 14:50:41 +0200 | [diff] [blame] | 5 | #define UNAME_MINIMUM_RELEASE "2.6.32" |
ths | e69b406 | 2007-10-08 13:35:05 +0000 | [diff] [blame] | 6 | |
zhaolichang | 6f9ff55 | 2020-09-17 15:50:25 +0800 | [diff] [blame] | 7 | /* pt_regs not only specifies the format in the user-struct during |
ths | e69b406 | 2007-10-08 13:35:05 +0000 | [diff] [blame] | 8 | * ptrace but is also the frame format used in the kernel prologue/epilogues |
| 9 | * themselves |
| 10 | */ |
| 11 | |
| 12 | struct target_pt_regs { |
| 13 | unsigned long orig_r10; |
| 14 | /* pushed by movem r13, [sp] in SAVE_ALL. */ |
| 15 | unsigned long r0; |
| 16 | unsigned long r1; |
| 17 | unsigned long r2; |
| 18 | unsigned long r3; |
| 19 | unsigned long r4; |
| 20 | unsigned long r5; |
| 21 | unsigned long r6; |
| 22 | unsigned long r7; |
| 23 | unsigned long r8; |
| 24 | unsigned long r9; |
| 25 | unsigned long r10; |
| 26 | unsigned long r11; |
| 27 | unsigned long r12; |
| 28 | unsigned long r13; |
| 29 | unsigned long acr; |
| 30 | unsigned long srs; |
| 31 | unsigned long mof; |
| 32 | unsigned long spc; |
| 33 | unsigned long ccs; |
| 34 | unsigned long srp; |
zhaolichang | 6f9ff55 | 2020-09-17 15:50:25 +0800 | [diff] [blame] | 35 | unsigned long erp; /* This is actually the debugged process's PC */ |
ths | e69b406 | 2007-10-08 13:35:05 +0000 | [diff] [blame] | 36 | /* For debugging purposes; saved only when needed. */ |
| 37 | unsigned long exs; |
| 38 | unsigned long eda; |
| 39 | }; |
Paolo Bonzini | cb9c377 | 2012-12-06 12:15:58 +0100 | [diff] [blame] | 40 | |
Peter Maydell | 4ce6243 | 2013-07-16 18:44:57 +0100 | [diff] [blame] | 41 | #define TARGET_CLONE_BACKWARDS2 |
Filip Bozuta | 02e5d7d | 2020-08-11 18:45:51 +0200 | [diff] [blame] | 42 | #define TARGET_MCL_CURRENT 1 |
| 43 | #define TARGET_MCL_FUTURE 2 |
| 44 | #define TARGET_MCL_ONFAULT 4 |
Peter Maydell | 4ce6243 | 2013-07-16 18:44:57 +0100 | [diff] [blame] | 45 | |
Paolo Bonzini | cb9c377 | 2012-12-06 12:15:58 +0100 | [diff] [blame] | 46 | #endif |