Subversion Repositories Kolibri OS

Rev

Rev 4874 | Rev 6536 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
4349 Serge 1
/* default reentrant pointer when multithread enabled */
2
 
3
#include <_ansi.h>
4
#include 
5
#include 
6
#include 
7
 
8
 
9
void init_reent()
10
{
11
    struct _reent *ent;
12
 
13
    ent = user_alloc(sizeof(struct _reent));
14
 
15
    _REENT_INIT_PTR(ent);
16
 
17
    __asm__ __volatile__(
18
    "movl %0, %%fs:16"
19
    ::"r"(ent));
20
    __sinit(ent);
21
}