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

Side by Side Diff: src/untrusted/irt/aeabi_read_tp.S

Issue 140653005: Adds tls_edit utility which patches irt_core.nexe's TLS usage. (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: gyp builds with host toolsets should not inherit target flags for arm and mips 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 /*
2 * Copyright (c) 2011 The Native Client Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can be
4 * found in the LICENSE file.
5 */
6
7 #include "native_client/src/trusted/service_runtime/nacl_config.h"
8
9 /*
10 * The IRT uses its own private TLS, leaving [r9, #0] for the
11 * application. We must define __aeabi_read_tp to get the private one
12 * instead of the standard one. The EABI requires that this function
13 * preserve all registers except r0 (the return value register). A
14 * normal function is permitted to clobber r1, r2, and r3 as well.
15 */
16
17 .globl __aeabi_read_tp
18 .type __aeabi_read_tp,%function
19 .p2align NACL_BLOCK_SHIFT
20 __aeabi_read_tp:
21 ldr r0, [r9, #4]
22 bic lr, lr, #NACL_CONTROL_FLOW_MASK
23 bx lr
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698