Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(35)

Unified Diff: src/platform-linux.cc

Issue 148913008: A64: Fix some compile errors when building for Android. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/platform-linux.cc
diff --git a/src/platform-linux.cc b/src/platform-linux.cc
index a9aaf7803b8dd2e2295057146447c69d6cda764d..99a15939c2fb0fa3b389935b37de412fb7b8b4b3 100644
--- a/src/platform-linux.cc
+++ b/src/platform-linux.cc
@@ -58,7 +58,8 @@
// GLibc on ARM defines mcontext_t has a typedef for 'struct sigcontext'.
// Old versions of the C library <signal.h> didn't define the type.
#if defined(__ANDROID__) && !defined(__BIONIC_HAVE_UCONTEXT_T) && \
- defined(__arm__) && !defined(__BIONIC_HAVE_STRUCT_SIGCONTEXT)
+ (defined(__arm__) || defined(__aarch64__)) && \
+ !defined(__BIONIC_HAVE_STRUCT_SIGCONTEXT)
#include <asm/sigcontext.h>
#endif
@@ -442,6 +443,8 @@ void OS::DebugBreak() {
asm("hlt 0");
#elif defined(__arm__) || defined(__thumb__)
asm("bkpt 0");
+#elif defined(__aarch64__)
Rodolph Perfetta (ARM) 2014/01/30 11:17:15 there is already a __aarch64__ case 2 lines up, bu
rmcilroy 2014/01/30 18:16:42 Ahh, missed the previous one. Removed it and kept
+ asm("brk 0");
#elif defined(__mips__)
asm("break");
#elif defined(__native_client__)
« src/a64/cpu-a64.cc ('K') | « src/platform-freebsd.cc ('k') | src/sampler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698