Changeset 68091bd in mainline for arch/ia64/src/mm/page.c


Ignore:
Timestamp:
2006-04-21T12:55:55Z (19 years ago)
Author:
Jakub Vana <jakub.vana@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c7c0b89b
Parents:
17b1b99
Message:

Incomplete VHPT walker support for Itanium

File:
1 edited

Legend:

Unmodified
Added
Removed
  • arch/ia64/src/mm/page.c

    r17b1b99 r68091bd  
    3232#include <mm/asid.h>
    3333#include <arch/mm/asid.h>
     34#include <arch/mm/vhpt.h>
    3435#include <arch/types.h>
    3536#include <typedefs.h>
     
    5960        pta_register pta;       
    6061        int i;
     62#ifdef CONFIG_VHPT     
     63        __address vhpt_base;
     64#endif
    6165
    6266        /*
     
    8993        }
    9094
     95#ifdef CONFIG_VHPT     
     96        vhpt_base = vhpt_set_up();
     97#endif
    9198        /*
    9299         * Set up PTA register.
    93100         */
    94101        pta.word = pta_read();
     102#ifndef CONFIG_VHPT
    95103        pta.map.ve = 0;                   /* disable VHPT walker */
     104        pta.map.base = 0 >> PTA_BASE_SHIFT;
     105#else
     106        pta.map.ve = 1;                   /* enable VHPT walker */
     107        pta.map.base = vhpt_base >> PTA_BASE_SHIFT;
     108#endif
    96109        pta.map.vf = 1;                   /* large entry format */
    97110        pta.map.size = VHPT_WIDTH;
    98         pta.map.base = VHPT_BASE >> PTA_BASE_SHIFT;
    99111        pta_write(pta.word);
    100112        srlz_i();
Note: See TracChangeset for help on using the changeset viewer.