OLD | NEW |
(Empty) | |
| 1 /* |
| 2 * Copyright 2012 The Native Client Authors. All rights reserved. |
| 3 * Use of this source code is governed by a BSD-style license that can |
| 4 * be found in the LICENSE file. |
| 5 */ |
| 6 |
| 7 /* |
| 8 * NaCl Signal Context |
| 9 */ |
| 10 |
| 11 #ifndef __NATIVE_CLIENT_SERVICE_RUNTIME_ARCH_MIPS_NACL_SIGNAL_MIPS_H__ |
| 12 #define __NATIVE_CLIENT_SERVICE_RUNTIME_ARCH_MIPS_NACL_SIGNAL_MIPS_H__ 1 |
| 13 |
| 14 #include "native_client/src/include/portability.h" |
| 15 |
| 16 /* |
| 17 * Architecture specific context object. Register order matches that |
| 18 * found in src/trusted/gdb_rsp/abi.cc, which allows us to use an |
| 19 * abi context (GDB ordered context), and a signal context interchangably. |
| 20 * In addition, we use a common names for the stack and program counter to |
| 21 * allow functions which use them to avoid conditional compilation. |
| 22 */ |
| 23 struct NaClSignalContext { |
| 24 uint32_t zero; |
| 25 uint32_t at; |
| 26 uint32_t v0; |
| 27 uint32_t v1; |
| 28 uint32_t a0; |
| 29 uint32_t a1; |
| 30 uint32_t a2; |
| 31 uint32_t a3; |
| 32 uint32_t t0; |
| 33 uint32_t t1; |
| 34 uint32_t t2; |
| 35 uint32_t t3; |
| 36 uint32_t t4; |
| 37 uint32_t t5; |
| 38 uint32_t t6; |
| 39 uint32_t t7; |
| 40 uint32_t s0; |
| 41 uint32_t s1; |
| 42 uint32_t s2; |
| 43 uint32_t s3; |
| 44 uint32_t s4; |
| 45 uint32_t s5; |
| 46 uint32_t s6; |
| 47 uint32_t s7; |
| 48 uint32_t t8; |
| 49 uint32_t t9; |
| 50 uint32_t k0; |
| 51 uint32_t k1; |
| 52 uint32_t global_ptr; |
| 53 uint32_t stack_ptr; |
| 54 uint32_t frame_ptr; |
| 55 uint32_t return_addr; |
| 56 uint32_t prog_ctr; |
| 57 }; |
| 58 |
| 59 |
| 60 #endif /* __NATIVE_CLIENT_SERVICE_RUNTIME_ARCH_MIPS_NACL_SIGNAL_MIPS_H__ */ |
OLD | NEW |