Changeset a9ac978 in mainline for kernel/arch/sparc64/src/sparc64.c


Ignore:
Timestamp:
2006-09-27T20:11:34Z (18 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
00b38a3
Parents:
86b31ba9
Message:

SMP stuff for sparc64.
Almost complete except for IPIs.
The absence of IPI support deadlocks
the kernel when more CPUs are configured.

File:
1 edited

Legend:

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

    r86b31ba9 ra9ac978  
    7171void arch_pre_mm_init(void)
    7272{
    73         trap_init();
     73        if (config.cpu_active == 1)
     74                trap_init();
    7475}
    7576
    7677void arch_post_mm_init(void)
    7778{
    78         standalone_sparc64_console_init();
     79        if (config.cpu_active == 1)
     80                standalone_sparc64_console_init();
    7981}
    8082
     
    9193        thread_t *t;
    9294
    93         /*
    94          * Create thread that polls keyboard.
    95          */
    96         t = thread_create(kkbdpoll, NULL, TASK, 0, "kkbdpoll");
    97         if (!t)
    98                 panic("cannot create kkbdpoll\n");
    99         thread_ready(t);
     95        if (config.cpu_active == 1) {
     96                /*
     97                 * Create thread that polls keyboard.
     98                 */
     99                t = thread_create(kkbdpoll, NULL, TASK, 0, "kkbdpoll");
     100                if (!t)
     101                        panic("cannot create kkbdpoll\n");
     102                thread_ready(t);
     103        }
    100104}
    101105
Note: See TracChangeset for help on using the changeset viewer.