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

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/toolchain_build_pnacl.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 a797355b188e9090135d05e66837b409307b0fe9..b2a7636fa68af2704cfacc586f17b70f719a73be 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/toolchain_build_pnacl.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698