Changeset 49319ac in mainline for kernel/arch/ia64/src


Ignore:
Timestamp:
2007-01-03T21:41:46Z (19 years ago)
Author:
Jakub Vana <jakub.vana@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
6dbe6844
Parents:
dfe9e2c
Message:

SIMICS added as a simulator kernel runs on

Location:
kernel/arch/ia64/src
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/ia64/src/ia64.c

    rdfe9e2c r49319ac  
    5151#include <syscall/syscall.h>
    5252#include <ddi/irq.h>
     53#include <arch/simics/ega.h>
    5354
    5455void arch_pre_main(void)
     
    8283}
    8384
     85
     86
    8487void arch_post_mm_init(void)
    8588{
    8689        irq_init(INR_COUNT, INR_COUNT);
     90#ifdef SKI
    8791        ski_init_console();
     92#else   
     93        ega_init();
     94#endif 
    8895        it_init();     
    8996}
     
    99106void arch_post_smp_init(void)
    100107{
    101         thread_t *t;
    102108
    103109        if (config.cpu_active == 1) {
     
    105111                 * Create thread that polls keyboard.
    106112                 */
    107                 t = thread_create(kkbdpoll, NULL, TASK, 0, "kkbdpoll");
     113#ifdef SKI
     114                thread_t *t;
     115                t = thread_create(kkbdpoll, NULL, TASK, 0, "kkbdpoll", true);
    108116                if (!t)
    109117                        panic("cannot create kkbdpoll\n");
    110118                thread_ready(t);
     119#endif         
    111120        }
    112121}
     
    156165void arch_grab_console(void)
    157166{
     167#ifdef SKI
    158168        ski_kbd_grab();
     169#endif 
    159170}
    160171/** Return console to userspace
     
    163174void arch_release_console(void)
    164175{
     176#ifdef SKI
    165177        ski_kbd_release();
     178#endif
    166179}
    167180
Note: See TracChangeset for help on using the changeset viewer.