Subversion Repositories HelenOS-historic

Compare Revisions

Ignore whitespace Rev 894 → Rev 895

/kernel/trunk/arch/sparc64/src/console.c
31,7 → 31,8
#include <typedefs.h>
#include <genarch/fb/fb.h>
#include <arch/drivers/fb.h>
#include <arch/drivers/keyboard.h>
#include <arch/drivers/i8042.h>
#include <genarch/i8042/i8042.h>
#include <genarch/ofw/ofw.h>
#include <console/chardev.h>
#include <console/console.h>
40,6 → 41,8
#include <proc/thread.h>
#include <synch/mutex.h>
 
#define KEYBOARD_POLL_PAUSE 50000 /* 50ms */
 
static void ofw_sparc64_putchar(chardev_t *d, const char ch);
static char ofw_sparc64_getchar(chardev_t *d);
static void ofw_sparc64_suspend(chardev_t *d);
73,6 → 76,7
ofw_console_active = 0;
stdin = NULL;
fb_init(FB_VIRT_ADDRESS, FB_X_RES, FB_Y_RES, FB_COLOR_DEPTH/8);
i8042_init();
}
 
/** Write one character using OpenFirmware.
155,6 → 159,18
ch = '\n';
chardev_push_character(&ofw_sparc64_console, ch);
}
thread_usleep(25000);
thread_usleep(KEYBOARD_POLL_PAUSE);
}
}
 
/** Kernel thread for polling keyboard.
*
* @param arg Ignored.
*/
void kkbdpoll(void *arg)
{
while (1) {
i8042_poll();
thread_usleep(KEYBOARD_POLL_PAUSE);
}
}
/kernel/trunk/arch/sparc64/src/sparc64.c
61,6 → 61,14
if (!t)
panic("cannot create kofwinput\n");
thread_ready(t);
 
/*
* Create thread that polls keyboard.
*/
t = thread_create(kkbdpoll, NULL, TASK, 0);
if (!t)
panic("cannot create kkbdpoll\n");
thread_ready(t);
}
 
void calibrate_delay_loop(void)
/kernel/trunk/arch/sparc64/src/mm/tlb.c
42,7 → 42,7
#include <symtab.h>
 
#include <arch/drivers/fb.h>
#include <arch/drivers/keyboard.h>
#include <arch/drivers/i8042.h>
 
char *context_encoding[] = {
"Primary",
/kernel/trunk/arch/sparc64/src/start.S
101,6 → 101,8
call ofw_init_memmap
nop
 
wrpr %r0, 0, %pil
 
call main_bsp
nop