Subversion Repositories HelenOS

Rev

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

Rev 4341 Rev 4342
Line 130... Line 130...
130
    if (config.cpu_active == 1) {
130
    if (config.cpu_active == 1) {
131
        iosapic_init();
131
        iosapic_init();
132
        irq_init(INR_COUNT, INR_COUNT);
132
        irq_init(INR_COUNT, INR_COUNT);
133
#ifdef SKI
133
#ifdef SKI
134
        ski_init_console();
134
        ski_init_console();
135
#else   
135
#else
136
        ega_init(EGA_BASE, EGA_VIDEORAM);
136
        ega_init(EGA_BASE, EGA_VIDEORAM);
137
#endif  
137
#endif
138
    }
138
    }
139
    it_init();
139
    it_init();
140
       
140
       
141
}
141
}
142
 
142
 
Line 263... Line 263...
263
 */
263
 */
264
void arch_release_console(void)
264
void arch_release_console(void)
265
{
265
{
266
#ifdef SKI
266
#ifdef SKI
267
    ski_kbd_release();
267
    ski_kbd_release();
268
#else   
268
#else
269
#ifdef CONFIG_NS16550
269
#ifdef CONFIG_NS16550
270
    ns16550_release();
270
    ns16550_release();
271
#else   
271
#else
272
    i8042_release();
272
    i8042_release();
273
#endif  
273
#endif
274
#endif
274
#endif
275
}
275
}
276
 
276
 
277
void arch_reboot(void)
277
void arch_reboot(void)
278
{
278
{
279
    outb(0x64, 0xfe);
279
    outb(0x64, 0xfe);
280
    while (1)
280
    while (1)
281
        ;
281
        ;
282
}
282
}
283
 
283
 
-
 
284
/** Construct function pointer
-
 
285
 *
-
 
286
 * @param fptr   function pointer structure
-
 
287
 * @param addr   function address
-
 
288
 * @param caller calling function address
-
 
289
 *
-
 
290
 * @return address of the function pointer
-
 
291
 *
-
 
292
 */
-
 
293
void *arch_construct_function(fncptr_t *fptr, void *addr, void *caller)
-
 
294
{
-
 
295
    fptr->fnc = (unative_t) addr;
-
 
296
    fptr->gp = ((unative_t *) caller)[1];
-
 
297
   
-
 
298
    return (void *) fptr;
-
 
299
}
-
 
300
 
284
/** @}
301
/** @}
285
 */
302
 */