Subversion Repositories HelenOS-historic

Rev

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

Rev 895 Rev 897
Line 38... Line 38...
38
#include <console/console.h>
38
#include <console/console.h>
39
#include <arch/asm.h>
39
#include <arch/asm.h>
40
#include <arch/register.h>
40
#include <arch/register.h>
41
#include <proc/thread.h>
41
#include <proc/thread.h>
42
#include <synch/mutex.h>
42
#include <synch/mutex.h>
-
 
43
#include <arch/mm/tlb.h>
43
 
44
 
44
#define KEYBOARD_POLL_PAUSE 50000   /* 50ms */
45
#define KEYBOARD_POLL_PAUSE 50000   /* 50ms */
45
 
46
 
46
static void ofw_sparc64_putchar(chardev_t *d, const char ch);
47
static void ofw_sparc64_putchar(chardev_t *d, const char ch);
47
static char ofw_sparc64_getchar(chardev_t *d);
48
static char ofw_sparc64_getchar(chardev_t *d);
Line 73... Line 74...
73
/** Initialize kernel console to use framebuffer and keyboard directly. */
74
/** Initialize kernel console to use framebuffer and keyboard directly. */
74
void standalone_sparc64_console_init(void)
75
void standalone_sparc64_console_init(void)
75
{
76
{
76
    ofw_console_active = 0;
77
    ofw_console_active = 0;
77
    stdin = NULL;
78
    stdin = NULL;
-
 
79
 
-
 
80
    dtlb_insert_mapping(FB_VIRT_ADDRESS, FB_PHYS_ADDRESS, PAGESIZE_4M, true, false);
-
 
81
    dtlb_insert_mapping(KBD_VIRT_ADDRESS, KBD_PHYS_ADDRESS, PAGESIZE_8K, true, false);
-
 
82
 
78
    fb_init(FB_VIRT_ADDRESS, FB_X_RES, FB_Y_RES, FB_COLOR_DEPTH/8);
83
    fb_init(FB_VIRT_ADDRESS, FB_X_RES, FB_Y_RES, FB_COLOR_DEPTH/8);
79
    i8042_init();
84
    i8042_init();
80
}
85
}
81
 
86
 
82
/** Write one character using OpenFirmware.
87
/** Write one character using OpenFirmware.