Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Blame | Last modification | View Log | RSS feed

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