Changeset 59e4864 in mainline for kernel/arch/ia64/src/ia64.c


Ignore:
Timestamp:
2008-11-11T08:00:42Z (16 years ago)
Author:
Jakub Vana <jakub.vana@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f3c4a26
Parents:
a2a5529
Message:

Alfa of SMP support on IA64

File:
1 edited

Legend:

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

    ra2a5529 r59e4864  
    5555#include <arch/bootinfo.h>
    5656#include <genarch/kbd/i8042.h>
     57#include <genarch/kbd/ns16550.h>
     58#include <smp/smp.h>
     59#include <smp/ipi.h>
     60#include <arch/atomic.h>
     61#include <panic.h>
     62#include <print.h>
     63
     64/*NS16550 as a COM 1*/
     65#define NS16550_IRQ 4
     66#define NS16550_PORT 0x3f8
    5767
    5868bootinfo_t *bootinfo;
     
    103113void arch_post_mm_init(void)
    104114{
    105         irq_init(INR_COUNT, INR_COUNT);
    106 #ifdef SKI
    107         ski_init_console();
     115        if(config.cpu_active==1)
     116        {
     117                irq_init(INR_COUNT, INR_COUNT);
     118#ifdef SKI
     119                ski_init_console();
    108120#else   
    109         ega_init();
     121                ega_init();
    110122#endif 
     123        }
    111124        it_init();     
    112125}
     
    128141        while (1) {
    129142                i8042_poll();
     143#ifdef CONFIG_NS16550
     144                ns16550_poll();
     145#endif
    130146                thread_usleep(POLL_INTERVAL);
    131147        }
     
    136152{
    137153
    138         if (config.cpu_active == 1) {
     154        {
    139155                /*
    140156                 * Create thread that polls keyboard.
     
    154170                i8042_init(kbd, IRQ_KBD, mouse, IRQ_MOUSE);
    155171
     172#ifdef CONFIG_NS16550
     173                ns16550_init(kbd, NS16550_IRQ, NS16550_PORT); // as a COM 1
     174#else
     175#endif
    156176                thread_t *t;
    157177                t = thread_create(i8042_kkbdpoll, NULL, TASK, 0, "kkbdpoll", true);
     
    164184        }
    165185}
     186
    166187
    167188/** Enter userspace and never return. */
     
    225246void arch_reboot(void)
    226247{
    227         // TODO
     248        outb(0x64,0xfe);
    228249        while (1);
    229250}
Note: See TracChangeset for help on using the changeset viewer.