/programs/develop/libraries/newlib/reent/getreent.c |
---|
3,17 → 3,8 |
#include <_ansi.h> |
#include <string.h> |
#include <reent.h> |
#include <kos32sys.h> |
static inline |
void *user_alloc(int size) |
{ |
void *val; |
__asm__ __volatile__( |
"int $0x40" |
:"=eax"(val) |
:"a"(68),"b"(12),"c"(size)); |
return val; |
} |
void init_reent() |
{ |
24,7 → 15,7 |
_REENT_INIT_PTR(ent); |
__asm__ __volatile__( |
"movl %0, %%fs:12" |
"movl %0, %%fs:16" |
::"r"(ent)); |
__sinit(ent); |
} |
/programs/develop/libraries/newlib/reent/init_reent.c |
---|
11,7 → 11,7 |
_REENT_INIT_PTR(ent); |
__asm__ __volatile__( |
"movl %0, %%fs:12" |
"movl %0, %%fs:16" |
::"r"(ent)); |
// __sinit(ent); |
} |