| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | /* $NetBSD: mcontext.h,v 1.3 2015/03/27 06:57:21 matt Exp $ */ | | 1 | /* $NetBSD: mcontext.h,v 1.4 2015/04/01 21:55:33 matt Exp $ */ |
2 | | | 2 | |
3 | /*- | | 3 | /*- |
4 | * Copyright (c) 2014 The NetBSD Foundation, Inc. | | 4 | * Copyright (c) 2014 The NetBSD Foundation, Inc. |
5 | * All rights reserved. | | 5 | * All rights reserved. |
6 | * | | 6 | * |
7 | * This code is derived from software contributed to The NetBSD Foundation | | 7 | * This code is derived from software contributed to The NetBSD Foundation |
8 | * by Matt Thomas of 3am Software Foundry. | | 8 | * by Matt Thomas of 3am Software Foundry. |
9 | * | | 9 | * |
10 | * Redistribution and use in source and binary forms, with or without | | 10 | * Redistribution and use in source and binary forms, with or without |
11 | * modification, are permitted provided that the following conditions | | 11 | * modification, are permitted provided that the following conditions |
12 | * are met: | | 12 | * are met: |
13 | * 1. Redistributions of source code must retain the above copyright | | 13 | * 1. Redistributions of source code must retain the above copyright |
14 | * notice, this list of conditions and the following disclaimer. | | 14 | * notice, this list of conditions and the following disclaimer. |
| @@ -81,26 +81,27 @@ typedef _BSD_FPREG_T_ __fregset_t[_NFREG | | | @@ -81,26 +81,27 @@ typedef _BSD_FPREG_T_ __fregset_t[_NFREG |
81 | #define _REG_X25 24 | | 81 | #define _REG_X25 24 |
82 | #define _REG_X26 25 | | 82 | #define _REG_X26 25 |
83 | #define _REG_X27 26 | | 83 | #define _REG_X27 26 |
84 | #define _REG_X28 27 | | 84 | #define _REG_X28 27 |
85 | #define _REG_X29 28 | | 85 | #define _REG_X29 28 |
86 | #define _REG_X30 29 | | 86 | #define _REG_X30 29 |
87 | #define _REG_X31 30 | | 87 | #define _REG_X31 30 |
88 | #define _REG_PC 31 | | 88 | #define _REG_PC 31 |
89 | | | 89 | |
90 | #define _REG_RA _REG_X1 | | 90 | #define _REG_RA _REG_X1 |
91 | #define _REG_SP _REG_X2 | | 91 | #define _REG_SP _REG_X2 |
92 | #define _REG_GP _REG_X3 | | 92 | #define _REG_GP _REG_X3 |
93 | #define _REG_TP _REG_X4 | | 93 | #define _REG_TP _REG_X4 |
| | | 94 | #define _REG_S0 _REG_X8 |
94 | #define _REG_RV _REG_X10 | | 95 | #define _REG_RV _REG_X10 |
95 | #define _REG_A0 _REG_X10 | | 96 | #define _REG_A0 _REG_X10 |
96 | | | 97 | |
97 | #define _REG_F0 0 | | 98 | #define _REG_F0 0 |
98 | #define _REG_FPCSR 32 | | 99 | #define _REG_FPCSR 32 |
99 | | | 100 | |
100 | typedef struct { | | 101 | typedef struct { |
101 | __gregset_t __gregs; /* General Purpose Register set */ | | 102 | __gregset_t __gregs; /* General Purpose Register set */ |
102 | __fregset_t __fregs; /* Floating Point Register set */ | | 103 | __fregset_t __fregs; /* Floating Point Register set */ |
103 | __greg_t __private; /* copy of l_private */ | | 104 | __greg_t __private; /* copy of l_private */ |
104 | __greg_t __spare[8]; /* future proof */ | | 105 | __greg_t __spare[8]; /* future proof */ |
105 | } mcontext_t; | | 106 | } mcontext_t; |
106 | | | 107 | |