diff options
author | rickyz <rickyz@chromium.org> | 2015-06-19 17:19:12 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-06-20 00:19:40 +0000 |
commit | 4b35d6c0be903128e6177b4395fcfe4a09184075 (patch) | |
tree | d7cc1a6a2908e68530df5d0bf6eeac29fdb1570b /sandbox | |
parent | 1e6b5a5fbf9a6af06323a06988e7e1c693545316 (diff) | |
download | chromium_src-4b35d6c0be903128e6177b4395fcfe4a09184075.zip chromium_src-4b35d6c0be903128e6177b4395fcfe4a09184075.tar.gz chromium_src-4b35d6c0be903128e6177b4395fcfe4a09184075.tar.bz2 |
sandbox: Add MIPS signal definitions in linux_signal.h
MIPS signal definitions are slightly different
from ARM/X86.
Based on gordanac's change: https://codereview.chromium.org/1193903003/
BUG=502321
Review URL: https://codereview.chromium.org/1196803002
Cr-Commit-Position: refs/heads/master@{#335398}
Diffstat (limited to 'sandbox')
-rw-r--r-- | sandbox/linux/system_headers/linux_signal.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/sandbox/linux/system_headers/linux_signal.h b/sandbox/linux/system_headers/linux_signal.h index 2aa8419..6801b71 100644 --- a/sandbox/linux/system_headers/linux_signal.h +++ b/sandbox/linux/system_headers/linux_signal.h @@ -8,6 +8,9 @@ // NOTE: On some toolchains, signal related ABI is incompatible with Linux's // (not undefined, but defined different values and in different memory // layouts). So, fill the gap here. +#if defined(__i386__) || defined(__x86_64__) || defined(__arm__) || \ + defined(__aarch64__) + #define LINUX_SIGHUP 1 #define LINUX_SIGINT 2 #define LINUX_SIGQUIT 3 @@ -30,6 +33,34 @@ #define LINUX_SIG_DFL 0 +#elif defined(__mips__) + +#define LINUX_SIGHUP 1 +#define LINUX_SIGINT 2 +#define LINUX_SIGQUIT 3 +#define LINUX_SIGABRT 6 +#define LINUX_SIGBUS 10 +#define LINUX_SIGSEGV 11 +#define LINUX_SIGSYS 12 +#define LINUX_SIGPIPE 13 +#define LINUX_SIGTERM 15 +#define LINUX_SIGUSR1 16 +#define LINUX_SIGUSR2 17 +#define LINUX_SIGCHLD 18 + +#define LINUX_SIG_BLOCK 1 +#define LINUX_SIG_UNBLOCK 2 + +#define LINUX_SA_SIGINFO 0x00000008 +#define LINUX_SA_NODEFER 0x40000000 +#define LINUX_SA_RESTART 0x10000000 + +#define LINUX_SIG_DFL 0 + +#else +#error "Unsupported platform" +#endif + #if defined(__native_client_nonsfi__) #if !defined(__i386__) && !defined(__arm__) #error "Unsupported platform" |