Subversion Repositories HelenOS

Rev

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

Rev 7 Rev 23
Line 48... Line 48...
48
void arch_init(void)
48
void arch_init(void)
49
{
49
{
50
    pm_init();
50
    pm_init();
51
 
51
 
52
    if (config.cpu_active == 1) {
52
    if (config.cpu_active == 1) {
53
        ega_init(); /* video */
-
 
54
        i8042_init();   /* a20 bit */
53
        i8042_init();   /* a20 bit */
55
        i8259_init();   /* PIC */
54
            i8259_init();   /* PIC */
56
        i8254_init();   /* hard clock */
55
        i8254_init();   /* hard clock */
57
       
56
 
58
        trap_register(VECTOR_SYSCALL, syscall);
57
        trap_register(VECTOR_SYSCALL, syscall);
59
       
58
       
60
        #ifdef __SMP__
59
        #ifdef __SMP__
61
        trap_register(VECTOR_TLB_SHOOTDOWN_IPI, tlb_shootdown_ipi);
60
        trap_register(VECTOR_TLB_SHOOTDOWN_IPI, tlb_shootdown_ipi);
62
        trap_register(VECTOR_WAKEUP_IPI, wakeup_ipi);
61
        trap_register(VECTOR_WAKEUP_IPI, wakeup_ipi);
63
        #endif /* __SMP__ */
62
        #endif /* __SMP__ */
64
    }
63
    }
65
}
64
}
66
 
65
 
-
 
66
void arch_post_mm_init()
-
 
67
{
-
 
68
    ega_init(); /* video */
-
 
69
}
-
 
70
 
67
void calibrate_delay_loop(void)
71
void calibrate_delay_loop(void)
68
{
72
{
69
    i8254_calibrate_delay_loop();
73
    i8254_calibrate_delay_loop();
70
    i8254_normal_operation();
74
    i8254_normal_operation();
71
}
75
}