Subversion Repositories HelenOS-historic

Rev

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

Rev 326 Rev 329
Line 28... Line 28...
28
 
28
 
29
#include <putchar.h>
29
#include <putchar.h>
30
#include <arch/types.h>
30
#include <arch/types.h>
31
#include <arch/cp0.h>
31
#include <arch/cp0.h>
32
#include <arch/console.h>
32
#include <arch/console.h>
-
 
33
#include <arch.h>
-
 
34
 
-
 
35
static void arc_putchar(const char ch)
-
 
36
{
-
 
37
    int cnt;
-
 
38
    pri_t pri;
-
 
39
 
-
 
40
    /* TODO: Should be spinlock? */
-
 
41
    pri = cpu_priority_high();
-
 
42
    bios_write(1, &ch, 1, &cnt);
-
 
43
    cpu_priority_restore(pri);
-
 
44
   
-
 
45
}
33
 
46
 
34
static void cons_putchar(const char ch)
47
static void cons_putchar(const char ch)
35
{
48
{
36
    *((char *) VIDEORAM) = ch;
49
    *((char *) VIDEORAM) = ch;
37
}
50
}