Subversion Repositories Kolibri OS

Rev

Rev 4874 | Blame | Compare with Previous | 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.     __asm__ __volatile__(
  12.     "movl %0, %%fs:16"
  13.     ::"r"(ent));
  14. }
  15.  
  16.