Ignore:
File:
1 edited

Legend:

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

    radec5b45 r88dfee7  
    5353#include <genarch/srln/srln.h>
    5454#include <mm/page.h>
    55 #include <mm/km.h>
    5655
    5756#ifdef MACHINE_ski
     
    7069void arch_pre_main(void)
    7170{
    72         init.cnt = min3(bootinfo->taskmap.cnt, TASKMAP_MAX_RECORDS,
    73             CONFIG_INIT_TASKS);
     71        init.cnt = min3(bootinfo->taskmap.cnt, TASKMAP_MAX_RECORDS, CONFIG_INIT_TASKS);
    7472        size_t i;
    75 
    7673        for (i = 0; i < init.cnt; i++) {
    77                 init.tasks[i].paddr =
    78                     (uintptr_t) bootinfo->taskmap.tasks[i].addr;
     74                init.tasks[i].addr =
     75                    ((unsigned long) bootinfo->taskmap.tasks[i].addr) |
     76                    VRN_MASK;
    7977                init.tasks[i].size = bootinfo->taskmap.tasks[i].size;
    8078                str_cpy(init.tasks[i].name, CONFIG_TASK_NAME_BUFLEN,
     
    8987static void iosapic_init(void)
    9088{
    91         uintptr_t IOSAPIC = km_map(iosapic_base, PAGE_SIZE,
    92             PAGE_WRITE | PAGE_NOT_CACHEABLE);
     89        uintptr_t IOSAPIC = hw_map(iosapic_base, PAGE_SIZE);
    9390        int i;
    9491       
     
    118115        if (config.cpu_active == 1) {
    119116                /* Map the page with legacy I/O. */
    120                 legacyio_virt_base = km_map(LEGACYIO_PHYS_BASE, LEGACYIO_SIZE,
    121                     PAGE_WRITE | PAGE_NOT_CACHEABLE);
     117                legacyio_virt_base = hw_map(LEGACYIO_PHYS_BASE, LEGACYIO_SIZE);
    122118
    123119                iosapic_init();
     
    192188       
    193189#ifdef CONFIG_I8042
    194         i8042_instance_t *i8042_instance = i8042_init((i8042_t *) I8042_BASE, IRQ_KBD);
     190        i8042_instance_t *i8042_instance = i8042_init((i8042_t *) I8042_BASE,
     191            IRQ_KBD);
    195192        if (i8042_instance) {
    196193                kbrd_instance_t *kbrd_instance = kbrd_init();
     
    201198                }
    202199        }
    203        
    204         sysinfo_set_item_val("i8042", NULL, true);
    205         sysinfo_set_item_val("i8042.inr_a", NULL, IRQ_KBD);
    206         sysinfo_set_item_val("i8042.inr_b", NULL, IRQ_MOUSE);
    207         sysinfo_set_item_val("i8042.address.physical", NULL,
    208             (uintptr_t) I8042_BASE);
    209         sysinfo_set_item_val("i8042.address.kernel", NULL,
    210             (uintptr_t) I8042_BASE);
    211 #endif
    212 
    213         sysinfo_set_item_val("netif.ne2000.inr", NULL, IRQ_NE2000);
    214 
     200#endif
     201       
    215202        sysinfo_set_item_val("ia64_iospace", NULL, true);
    216203        sysinfo_set_item_val("ia64_iospace.address", NULL, true);
Note: See TracChangeset for help on using the changeset viewer.