Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / native_client / src / untrusted / nacl / nacl_read_tp.c
1 /*
2  * Copyright (c) 2012 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/untrusted/nacl/nacl_irt.h"
8 #include "native_client/src/untrusted/nacl/nacl_thread.h"
9 #include "native_client/src/untrusted/nacl/tls.h"
10
11 /*
12  * The compiler generates calls to __nacl_read_tp() for TLS accesses.
13  * This is primarily used for x86-64.  See src/untrusted/nacl/tls.h.
14  *
15  * NOTE: In the glibc build, this is defined in ld.so rather than here.
16  */
17 void *__nacl_read_tp(void) {
18   return nacl_tls_get();
19 }