Subversion Repositories HelenOS

Rev

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

Rev 4055 Rev 4156
Line 35... Line 35...
35
#include <arch.h>
35
#include <arch.h>
36
#include <debug.h>
36
#include <debug.h>
37
#include <config.h>
37
#include <config.h>
38
#include <arch/trap/trap.h>
38
#include <arch/trap/trap.h>
39
#include <arch/console.h>
39
#include <arch/console.h>
40
#include <proc/thread.h>
-
 
41
#include <console/console.h>
40
#include <console/console.h>
42
#include <arch/boot/boot.h>
41
#include <arch/boot/boot.h>
43
#include <arch/arch.h>
42
#include <arch/arch.h>
44
#include <arch/asm.h>
43
#include <arch/asm.h>
45
#include <arch/mm/page.h>
44
#include <arch/mm/page.h>
Line 100... Line 99...
100
{
99
{
101
}
100
}
102
 
101
 
103
void arch_post_smp_init(void)
102
void arch_post_smp_init(void)
104
{
103
{
105
    if (config.cpu_active == 1) {
-
 
106
        standalone_sparc64_console_init();
104
    standalone_sparc64_console_init();
107
 
-
 
108
        /* Create thread that polls keyboard.
-
 
109
         * XXX: this is only used by sgcn now
-
 
110
         */
-
 
111
        thread_t *t = thread_create(kkbdpoll, NULL, TASK, 0, "kkbdpoll",
-
 
112
            true);
-
 
113
        if (!t)
-
 
114
            panic("Cannot create kkbdpoll.");
-
 
115
        thread_ready(t);
-
 
116
    }
-
 
117
}
105
}
118
 
106
 
119
/** Calibrate delay loop.
107
/** Calibrate delay loop.
120
 *
108
 *
121
 * On sparc64, we implement delay() by waiting for the TICK register to
109
 * On sparc64, we implement delay() by waiting for the TICK register to