1/*
2 * Copyright 2017, Data61
3 * Commonwealth Scientific and Industrial Research Organisation (CSIRO)
4 * ABN 41 687 119 230.
5 *
6 * This software may be distributed and modified according to the terms of
7 * the BSD 2-Clause license. Note that NO WARRANTY is provided.
8 * See "LICENSE_BSD2.txt" for details.
9 *
10 * @TAG(DATA61_BSD)
11 */
12
13#include <stdio.h>
14#include <bits/errno.h>
15
16long sys_set_thread_area(va_list ap) {
17    /* As part of the initialization of the C library we need to set the
18     * thread area (also knows as the TLS base) for thread local storage.
19     * As we do not properly support TLS we just ignore this call. Will
20     * be fine provided we do not create multiple threads (through libc)
21     * or use TLS */
22    return 0;
23}
24
25long sys_set_tid_address(va_list ap) {
26    return -ENOSYS;
27}
28