Subversion Repositories HelenOS

Rev

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

Rev 1790 Rev 1822
Line 52... Line 52...
52
/** Initialize kernel console to use framebuffer and keyboard directly. */
52
/** Initialize kernel console to use framebuffer and keyboard directly. */
53
void standalone_sparc64_console_init(void)
53
void standalone_sparc64_console_init(void)
54
{
54
{
55
    stdin = NULL;
55
    stdin = NULL;
56
 
56
 
-
 
57
    if (bootinfo.keyboard.addr)
57
    kbd_init();
58
        kbd_init();
-
 
59
       
58
    fb_init(bootinfo.screen.addr, bootinfo.screen.width, bootinfo.screen.height,
60
    fb_init(bootinfo.screen.addr, bootinfo.screen.width, bootinfo.screen.height,
59
        bootinfo.screen.bpp, bootinfo.screen.scanline);
61
        bootinfo.screen.bpp, bootinfo.screen.scanline);
60
}
62
}
61
 
63
 
62
/** Kernel thread for polling keyboard.
64
/** Kernel thread for polling keyboard.
63
 *
65
 *
64
 * @param arg Ignored.
66
 * @param arg Ignored.
65
 */
67
 */
66
void kkbdpoll(void *arg)
68
void kkbdpoll(void *arg)
67
{
69
{
-
 
70
    if (!bootinfo.keyboard.addr)
-
 
71
        return;
-
 
72
       
68
    while (1) {
73
    while (1) {
69
        i8042_poll();      
74
        i8042_poll();      
70
        thread_usleep(KEYBOARD_POLL_PAUSE);
75
        thread_usleep(KEYBOARD_POLL_PAUSE);
71
    }
76
    }
72
}
77
}