Changeset fe56c08a in mainline for kernel/arch/ia64/src/ia64.c


Ignore:
Timestamp:
2012-01-28T09:17:24Z (12 years ago)
Author:
Frantisek Princ <frantisek.princ@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
ca3d77a
Parents:
8da2c60 (diff), 9970a5a (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge with mainline

File:
1 edited

Legend:

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

    r8da2c60 rfe56c08a  
    5353#include <genarch/srln/srln.h>
    5454#include <mm/page.h>
     55#include <mm/km.h>
    5556
    5657#ifdef MACHINE_ski
     
    6970void arch_pre_main(void)
    7071{
    71         init.cnt = min3(bootinfo->taskmap.cnt, TASKMAP_MAX_RECORDS, CONFIG_INIT_TASKS);
     72        init.cnt = min3(bootinfo->taskmap.cnt, TASKMAP_MAX_RECORDS,
     73            CONFIG_INIT_TASKS);
    7274        size_t i;
     75
    7376        for (i = 0; i < init.cnt; i++) {
    74                 init.tasks[i].addr =
    75                     ((unsigned long) bootinfo->taskmap.tasks[i].addr) |
    76                     VRN_MASK;
     77                init.tasks[i].paddr =
     78                    (uintptr_t) bootinfo->taskmap.tasks[i].addr;
    7779                init.tasks[i].size = bootinfo->taskmap.tasks[i].size;
    7880                str_cpy(init.tasks[i].name, CONFIG_TASK_NAME_BUFLEN,
     
    8789static void iosapic_init(void)
    8890{
    89         uintptr_t IOSAPIC = hw_map(iosapic_base, PAGE_SIZE);
     91        uintptr_t IOSAPIC = km_map(iosapic_base, PAGE_SIZE,
     92            PAGE_WRITE | PAGE_NOT_CACHEABLE);
    9093        int i;
    9194       
     
    115118        if (config.cpu_active == 1) {
    116119                /* Map the page with legacy I/O. */
    117                 legacyio_virt_base = hw_map(LEGACYIO_PHYS_BASE, LEGACYIO_SIZE);
     120                legacyio_virt_base = km_map(LEGACYIO_PHYS_BASE, LEGACYIO_SIZE,
     121                    PAGE_WRITE | PAGE_NOT_CACHEABLE);
    118122
    119123                iosapic_init();
Note: See TracChangeset for help on using the changeset viewer.