Subversion Repositories HelenOS

Rev

Rev 4055 | Rev 4398 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4055 Rev 4156
Line 42... Line 42...
42
#include <errno.h>
42
#include <errno.h>
43
#include <fcntl.h>
43
#include <fcntl.h>
44
#include <task.h>
44
#include <task.h>
45
#include <malloc.h>
45
#include <malloc.h>
46
#include <macros.h>
46
#include <macros.h>
-
 
47
#include <console.h>
47
#include "init.h"
48
#include "init.h"
48
#include "version.h"
49
#include "version.h"
49
 
50
 
50
static bool mount_fs(const char *fstype)
51
static bool mount_fs(const char *fstype)
51
{
52
{
Line 80... Line 81...
80
    printf(NAME ": Spawning %s\n", fname);
81
    printf(NAME ": Spawning %s\n", fname);
81
   
82
   
82
    argv[0] = fname;
83
    argv[0] = fname;
83
    argv[1] = NULL;
84
    argv[1] = NULL;
84
   
85
   
85
    if (task_spawn(fname, argv))
86
    if (task_spawn(fname, argv)) {
86
        /* Add reasonable delay to avoid
87
        /* Add reasonable delay to avoid intermixed klog output. */
87
           intermixed klog output */
-
 
88
        usleep(10000);
88
        usleep(10000);
89
    else
89
    } else {
90
        printf(NAME ": Error spawning %s\n", fname);
90
        printf(NAME ": Error spawning %s\n", fname);
-
 
91
    }
91
}
92
}
92
 
93
 
93
int main(int argc, char *argv[])
94
int main(int argc, char *argv[])
94
{
95
{
95
    info_print();
96
    info_print();
Line 97... Line 98...
97
    if (!mount_fs(STRING(RDFMT))) {
98
    if (!mount_fs(STRING(RDFMT))) {
98
        printf(NAME ": Exiting\n");
99
        printf(NAME ": Exiting\n");
99
        return -1;
100
        return -1;
100
    }
101
    }
101
   
102
   
102
    // FIXME: spawn("/srv/pci");
103
    spawn("/srv/pci");
103
    spawn("/srv/fb");
104
    spawn("/srv/fb");
104
    spawn("/srv/kbd");
105
    spawn("/srv/kbd");
105
    spawn("/srv/console");
106
    spawn("/srv/console");
106
    spawn("/srv/fhc");
107
    spawn("/srv/fhc");
107
    spawn("/srv/obio");
108
    spawn("/srv/obio");