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

Unified Diff: src/nonsfi/irt/irt_interfaces.c

Issue 1412503002: PNaCl. Enables Unsandboxed nonsfi ARM32. (Closed) Base URL: https://chromium.googlesource.com/native_client/src/native_client.git@master
Patch Set: Created 5 years, 2 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
« no previous file with comments | « no previous file | tests/spec2k/run_all.sh » ('j') | toolchain_build/pnacl_targetlibs.py » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/nonsfi/irt/irt_interfaces.c
diff --git a/src/nonsfi/irt/irt_interfaces.c b/src/nonsfi/irt/irt_interfaces.c
index d1561c5979a65c908cf6348202e261452461fa17..1f363610826239d0628d6782b280a5be48b8fd03 100644
--- a/src/nonsfi/irt/irt_interfaces.c
+++ b/src/nonsfi/irt/irt_interfaces.c
@@ -362,6 +362,27 @@ void *__nacl_read_tp(void) {
}
#endif
+#if defined(__arm_nonsfi_linux__)
+
+__asm__(".pushsection .text, \"ax\", %progbits\n"
+ ".global __aeabi_read_tp\n"
+ ".type __aeabi_read_tp, %function\n"
+ ".arm\n"
+ "__aeabi_read_tp:\n"
+ "push {r1-r3, lr}\n"
+ "vpush {d0-d7}\n"
+ "blx aeabi_read_tp_impl\n"
+ "vpop {d0-d7}\n"
+ "pop {r1-r3, pc}\n"
+ ".popsection\n");
+
+void *aeabi_read_tp_impl(void) {
+ return g_tls_value;
+}
+
+#endif
+
+
struct thread_args {
void (*start_func)(void);
void *thread_ptr;
« no previous file with comments | « no previous file | tests/spec2k/run_all.sh » ('j') | toolchain_build/pnacl_targetlibs.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698