Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/libc.c

    r153c7a29 r9d58539  
    4141 */
    4242
    43 #include <errno.h>
    4443#include <libc.h>
    4544#include <stdlib.h>
     
    5352#include "private/io.h"
    5453
    55 #ifdef FUTEX_UPGRADABLE
    56 #include <rcu.h>
    57 #endif
    58 
    5954#ifdef CONFIG_RTLD
    6055#include <rtld/rtld.h>
    6156#endif
    62 
    6357
    6458static bool env_setup = false;
     
    6862        /* Initialize user task run-time environment */
    6963        __malloc_init();
    70        
    71         /* Save the PCB pointer */
    72         __pcb = (pcb_t *) pcb_ptr;
    73        
    74 #ifdef CONFIG_RTLD
    75         if (__pcb != NULL && __pcb->rtld_runtime != NULL) {
    76                 runtime_env = (rtld_t *) __pcb->rtld_runtime;
    77         } else {
    78                 if (rtld_init_static() != EOK)
    79                         abort();
    80         }
    81 #endif
     64        __async_init();
    8265       
    8366        fibril_t *fibril = fibril_setup();
     
    8770        __tcb_set(fibril->tcb);
    8871       
    89        
    90 #ifdef FUTEX_UPGRADABLE
    91         rcu_register_fibril();
    92 #endif
    93        
    94         __async_init();
     72        /* Save the PCB pointer */
     73        __pcb = (pcb_t *) pcb_ptr;
    9574       
    9675        /* The basic run-time environment is setup */
     
    10079        char **argv;
    10180       
     81#ifdef __IN_SHARED_LIBC__
     82        if (__pcb != NULL && __pcb->rtld_runtime != NULL) {
     83                runtime_env = (runtime_env_t *) __pcb->rtld_runtime;
     84        }
     85#endif
    10286        /*
    10387         * Get command line arguments and initialize
     
    128112                __stdio_done();
    129113                task_retval(status);
    130                 fibril_teardown(__tcb_get()->fibril_data, false);
     114                fibril_teardown(__tcb_get()->fibril_data);
    131115        }
    132116       
Note: See TracChangeset for help on using the changeset viewer.