Subversion Repositories HelenOS

Rev

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

Rev 3075 Rev 3112
Line 80... Line 80...
80
            async_msg_1(console_phone, CONSOLE_PUTCHAR,
80
            async_msg_1(console_phone, CONSOLE_PUTCHAR,
81
                ((const char *) buf)[i]);
81
                ((const char *) buf)[i]);
82
       
82
       
83
        return count;
83
        return count;
84
    } else
84
    } else
85
        return __SYSCALL3(SYS_IO, 1, (sysarg_t) buf, count);
85
        return __SYSCALL3(SYS_KLOG, 1, (sysarg_t) buf, count);
86
}
86
}
87
 
87
 
88
void open_console(void)
88
void open_console(void)
89
{
89
{
90
    if (console_phone < 0) {
90
    if (console_phone < 0) {
Line 92... Line 92...
92
        if (phone >= 0)
92
        if (phone >= 0)
93
            console_phone = phone;
93
            console_phone = phone;
94
    }
94
    }
95
}
95
}
96
 
96
 
-
 
97
void klog_update(void)
-
 
98
{
-
 
99
    (void) __SYSCALL3(SYS_KLOG, 1, NULL, 0);
-
 
100
}
-
 
101
 
97
int get_cons_phone(void)
102
int get_cons_phone(void)
98
{
103
{
99
    open_console();
104
    open_console();
100
    return console_phone;
105
    return console_phone;
101
}
106
}