mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-01 06:35:42 +00:00
30 lines
991 B
C
30 lines
991 B
C
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
// Android runs a fairly new Linux kernel, so signal info is there,
|
|
// but the C library doesn't have the structs defined.
|
|
|
|
struct sigcontext {
|
|
uint32_t trap_no;
|
|
uint32_t error_code;
|
|
uint32_t oldmask;
|
|
uint32_t gregs[16];
|
|
uint32_t arm_cpsr;
|
|
uint32_t fault_address;
|
|
};
|
|
typedef uint32_t __sigset_t;
|
|
typedef struct sigcontext mcontext_t;
|
|
typedef struct ucontext {
|
|
uint32_t uc_flags;
|
|
struct ucontext* uc_link;
|
|
stack_t uc_stack;
|
|
mcontext_t uc_mcontext;
|
|
__sigset_t uc_sigmask;
|
|
} ucontext_t;
|
|
enum ArmRegisters {R0 = 0, R1 = 1, R2 = 2, R3 = 3, R4 = 4, R5 = 5,
|
|
R6 = 6, R7 = 7, R8 = 8, R9 = 9, R10 = 10,
|
|
R11 = 11, R12 = 12, R13 = 13, R14 = 14, R15 = 15};
|
|
|