Subversion Repositories HelenOS

Rev

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

Rev 1888 Rev 1936
Line 351... Line 351...
351
    .suspend = arc_disable,
351
    .suspend = arc_disable,
352
    .write = arc_write,
352
    .write = arc_write,
353
    .read = arc_read
353
    .read = arc_read
354
};
354
};
355
 
355
 
356
iroutine old_timer;
-
 
357
/** Do polling on timer interrupt */
-
 
358
static void timer_replace(int n, istate_t *istate)
-
 
359
{
-
 
360
    arc_keyboard_poll();
-
 
361
    old_timer(n, istate);
-
 
362
    arc_keyboard_poll();
-
 
363
}
-
 
364
 
-
 
365
void arc_console(void)
356
void arc_console(void)
366
{
357
{
367
    kbd_polling_enabled = true;
358
    kbd_polling_enabled = true;
368
   
359
   
369
    chardev_initialize("arc_console", &console, &arc_ops);
360
    chardev_initialize("arc_console", &console, &arc_ops);
370
    old_timer = int_register(TIMER_IRQ, "arc_kb_poll", timer_replace);
361
    timer_fnc = &arc_keyboard_poll;
371
    stdin = &console;
362
    stdin = &console;
372
    stdout = &console;
363
    stdout = &console;
373
}
364
}
374
 
365
 
375
/* Initialize frame zones from ARC firmware.
366
/* Initialize frame zones from ARC firmware.