From 61ba39a23786a7ae9694705af1d146c00a319144 Mon Sep 17 00:00:00 2001 From: "Nicolas \"Pixel\" Noble" Date: Sat, 5 Feb 2011 04:35:27 +0100 Subject: Getting rid of newlib, starting to implement a libc. Highly experimental, highly untested. --- libc/src/reent.c | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 libc/src/reent.c (limited to 'libc/src/reent.c') diff --git a/libc/src/reent.c b/libc/src/reent.c new file mode 100644 index 0000000..17de11d --- /dev/null +++ b/libc/src/reent.c @@ -0,0 +1,8 @@ +#include "reent.h" + +static struct _reent main_thread; +struct _reent * _impure_ptr = &main_thread; + +__attribute__((constructor)) static void init_main_thread() { + _REENT_INIT_PTR(_impure_ptr); +} -- cgit v1.2.3