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 28... Line 28...
28
 
28
 
29
#include <interrupt.h>
29
#include <interrupt.h>
30
#include <console/chardev.h>
30
#include <console/chardev.h>
31
#include <arch/drivers/msim.h>
31
#include <arch/drivers/msim.h>
32
#include <arch/cp0.h>
32
#include <arch/cp0.h>
-
 
33
#include <console/console.h>
33
 
34
 
34
static chardev_t console;
35
static chardev_t console;
35
 
36
 
36
static void msim_write(chardev_t *dev, const char ch);
37
static void msim_write(chardev_t *dev, const char ch);
37
static void msim_enable(chardev_t *dev);
38
static void msim_enable(chardev_t *dev);
Line 75... Line 76...
75
    chardev_push_character(&console, ch);
76
    chardev_push_character(&console, ch);
76
}
77
}
77
 
78
 
78
 
79
 
79
/* Return console object representing msim console */
80
/* Return console object representing msim console */
80
chardev_t * msim_console(void)
81
void msim_console(void)
81
{
82
{
82
    chardev_initialize("msim_console", &console, &msim_ops);
83
    chardev_initialize("msim_console", &console, &msim_ops);
83
 
84
 
84
    int_register(MSIM_KBD_IRQ, "msim_kbd", msim_interrupt);
85
    int_register(MSIM_KBD_IRQ, "msim_kbd", msim_interrupt);
85
 
86
 
86
    cp0_unmask_int(MSIM_KBD_IRQ);
87
    cp0_unmask_int(MSIM_KBD_IRQ);
87
 
88
 
88
    return &console;
89
    stdin = &console;
-
 
90
    stdout = &console;
89
}
91
}