Subversion Repositories HelenOS-historic

Rev

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

Rev 1547 Rev 1560
Line 54... Line 54...
54
int main(int argc, char *argv[])
54
int main(int argc, char *argv[])
55
{
55
{
56
    ipcarg_t phonead;
56
    ipcarg_t phonead;
57
    int initialized = 0;
57
    int initialized = 0;
58
 
58
 
-
 
59
#ifdef ia32
59
    if (sysinfo_value("fb.kind") == 1) {
60
    if (sysinfo_value("fb.kind") == 1) {
60
        if (fb_init() == 0)
61
        if (fb_init() == 0)
61
            initialized = 1;
62
            initialized = 1;
62
    } else if (sysinfo_value("fb.kind") == 2) {
63
    } else if (sysinfo_value("fb.kind") == 2) {
63
        if (ega_init() == 0)
64
        if (ega_init() == 0)
64
            initialized = 1;
65
            initialized = 1;
65
    }
66
    }
-
 
67
#endif
-
 
68
 
-
 
69
#ifdef amd64 
-
 
70
    if (sysinfo_value("fb.kind") == 1) {
-
 
71
        if (fb_init() == 0)
-
 
72
            initialized = 1;
-
 
73
    } else if (sysinfo_value("fb.kind") == 2) {
-
 
74
        if (ega_init() == 0)
-
 
75
            initialized = 1;
-
 
76
    }
-
 
77
#endif
-
 
78
 
-
 
79
 
66
   
80
   
67
    if (!initialized)
81
    if (!initialized)
68
        sysio_init();
82
        sysio_init();
69
 
83
 
70
    if (ipc_connect_to_me(PHONE_NS, SERVICE_VIDEO, 0, &phonead) != 0)
84
    if (ipc_connect_to_me(PHONE_NS, SERVICE_VIDEO, 0, &phonead) != 0)