2013-06-03 19:15:09 +02:00
|
|
|
#include <_ansi.h>
|
|
|
|
#include <string.h>
|
|
|
|
#include <reent.h>
|
|
|
|
|
|
|
|
void init_global_reent()
|
|
|
|
{
|
|
|
|
struct _reent *ent;
|
|
|
|
|
|
|
|
ent =_GLOBAL_REENT;
|
|
|
|
|
|
|
|
_REENT_INIT_PTR(ent);
|
|
|
|
|
|
|
|
__asm__ __volatile__(
|
2013-07-10 21:26:24 +02:00
|
|
|
"movl %0, %%fs:16"
|
2013-06-03 19:15:09 +02:00
|
|
|
::"r"(ent));
|
|
|
|
// __sinit(ent);
|
|
|
|
}
|
|
|
|
|