Subversion Repositories HelenOS-historic

Rev

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

Rev 590 Rev 606
Line 99... Line 99...
99
{
99
{
100
    old_timer(n, stack);
100
    old_timer(n, stack);
101
    serial_interrupt(n, stack);
101
    serial_interrupt(n, stack);
102
}
102
}
103
 
103
 
104
#include <print.h>
-
 
105
chardev_t * serial_console(void)
104
void serial_console(void)
106
{
105
{
107
    serial_t *sd = &sconf[0];
106
    serial_t *sd = &sconf[0];
108
 
107
 
109
 
108
 
110
    chardev_initialize("serial_console", &console, &serial_ops);
109
    chardev_initialize("serial_console", &console, &serial_ops);
Line 115... Line 114...
115
    /* I don't know why, but the serial interrupts simply
114
    /* I don't know why, but the serial interrupts simply
116
     * don't work on simics
115
     * don't work on simics
117
     */
116
     */
118
    old_timer = int_register(TIMER_IRQ, "serial_drvr_poll", timer_replace);
117
    old_timer = int_register(TIMER_IRQ, "serial_drvr_poll", timer_replace);
119
   
118
   
120
 
-
 
121
    return &console;
119
    stdin = &console;
122
   
120
    stdout = &console;
123
}
121
}