Example #1
0
File: load.c Project: jianfu/slcore
void slr_init(void)
{
    /* VERBOSE set by slr -t or -g */
    char *vs = getenv("VERBOSE");
    bool verbose = false;
    if (vs && vs[0])
        verbose = true;

    char *data = getenv("SLR_DATA");
    if (data)
        load_binary_data(data, &__slr_base, verbose);

    char *fdata = getenv("SLR_FDATA");
    if (fdata)
        load_binary_data(fdata, &__fibre_base, verbose);    

    /* MGSYS_QUIET set by user */
    if (getenv("MGSYS_QUIET") != NULL)
        verbose_boot = 0;    

#if !defined(__slc_os_init_via_main__)
    /* hlsim/ptl must be initialized via main first, 
     so sys_init gets called from _main() instead. */
    sys_init(NULL, NULL, NULL);
#endif
}
Example #2
0
void slr_init(void)
{
    char *vs = getenv("VERBOSE");
    bool verbose = false;
    if (vs && vs[0])
        verbose = true;
    
    char *data = getenv("SLR_DATA");
    if (data)
        load_binary_data(data, &__slr_base, verbose);

    char *fdata = getenv("SLR_FDATA");
    if (fdata)
        load_binary_data(fdata, &__fibre_base, verbose);    
}