Subversion Repositories Kolibri OS

Rev

Rev 4874 | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4874 Rev 6664
1
#include <_ansi.h>
1
#include <_ansi.h>
2
#include 
2
#include 
3
#include 
3
#include 
4
 
4
 
5
void init_global_reent()
5
void init_global_reent()
6
{
6
{
7
    struct _reent *ent;
7
    struct _reent *ent;
8
 
8
 
9
    ent =_GLOBAL_REENT;
9
    ent =_GLOBAL_REENT;
10
 
-
 
11
    _REENT_INIT_PTR(ent);
-
 
12
 
10
 
13
    __asm__ __volatile__(
11
    __asm__ __volatile__(
14
    "movl %0, %%fs:16"
12
    "movl %0, %%fs:16"
15
    ::"r"(ent));
13
    ::"r"(ent));
16
//    __sinit(ent);
-
 
17
}
14
}