diff options
author | Chih-Wei Huang <cwhuang@linux.org.tw> | 2012-01-05 15:53:10 +0800 |
---|---|---|
committer | Jean-Baptiste Queru <jbq@google.com> | 2012-02-15 08:56:09 -0800 |
commit | 351b9f793fda97d4d1c8eb905d40c27b3ee76925 (patch) | |
tree | 9bd4c43b61ccc09abdef6b3b26379f7a02c31ab9 /src | |
parent | b2f047a93f0b021b7f4a9ee3ce41b93c22209dce (diff) | |
download | android_external_v8-351b9f793fda97d4d1c8eb905d40c27b3ee76925.tar.gz android_external_v8-351b9f793fda97d4d1c8eb905d40c27b3ee76925.tar.bz2 android_external_v8-351b9f793fda97d4d1c8eb905d40c27b3ee76925.zip |
Enable x86 support
Change-Id: I6009002b3b9fdb4cf9e07272be6918f19400e51f
Diffstat (limited to 'src')
-rw-r--r-- | src/platform-linux.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/platform-linux.cc b/src/platform-linux.cc index c60658fb..474c5406 100644 --- a/src/platform-linux.cc +++ b/src/platform-linux.cc @@ -808,7 +808,7 @@ Semaphore* OS::CreateSemaphore(int count) { #ifdef ENABLE_LOGGING_AND_PROFILING -#if !defined(__GLIBC__) && (defined(__arm__) || defined(__thumb__)) +#if !defined(__GLIBC__) && (defined(__arm__) || defined(__thumb__) || defined(__i386__)) // Android runs a fairly new Linux kernel, so signal info is there, // but the C library doesn't have the structs defined. @@ -830,6 +830,7 @@ typedef struct ucontext { __sigset_t uc_sigmask; } ucontext_t; enum ArmRegisters {R15 = 15, R13 = 13, R11 = 11}; +enum X86Registers {REG_EIP = 14, REG_ESP = 7, REG_EBP = 6}; #endif |