2015-12-18 Ville Voutilainen <ville.voutilainen@gmail.com>
[official-gcc.git] / libgo / runtime / rtems-task-variable-add.c
blob89dbb007aadbd464bdd001c459a15f4165312af3
1 /* rtems-task-variable-add.c -- adding a task specific variable in RTEMS OS.
3 Copyright 2010 The Go Authors. All rights reserved.
4 Use of this source code is governed by a BSD-style
5 license that can be found in the LICENSE file. */
7 #include <rtems/error.h>
8 #include <rtems/system.h>
9 #include <rtems/rtems/tasks.h>
11 #include "go-assert.h"
13 /* RTEMS does not support GNU TLS extension __thread. */
14 void
15 __wrap_rtems_task_variable_add (void **var)
17 rtems_status_code sc = rtems_task_variable_add (RTEMS_SELF, var, NULL);
18 if (sc != RTEMS_SUCCESSFUL)
20 rtems_error (sc, "rtems_task_variable_add failed");
21 __go_assert (0);