Changeset 849386a in mainline for arch/ia64/include/mm/page.h


Ignore:
Timestamp:
2006-01-27T16:23:40Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
457d18a
Parents:
c2b95d3
Message:

First HT_HASH_ARCH implementation for ia64.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • arch/ia64/include/mm/page.h

    rc2b95d3 r849386a  
    4747
    4848/** Implementation of page hash table interface. */
    49 #define HT_ENTRIES_ARCH                 0
    50 #define HT_HASH_ARCH(page, asid)        0
     49#define HT_ENTRIES_ARCH                 (VHPT_SIZE/sizeof(pte_t))
     50#define HT_HASH_ARCH(page, asid)        vhpt_hash((page), (asid))
    5151#define HT_COMPARE_ARCH(page, asid, t)  0
    5252#define HT_SLOT_EMPTY_ARCH(t)           1
     
    5656#define HT_SET_RECORD_ARCH(t, page, asid, frame, flags)
    5757
     58#define VRN_SHIFT                       61
     59#define VRN_MASK                        (7LL << VRN_SHIFT)
     60
    5861#define VRN_KERNEL                      0
     62#define VRN_WORK                        1LL
    5963#define REGION_REGISTERS                8
    6064
     
    198202        __u64 ret;
    199203       
    200 //      ASSERT(i < REGION_REGISTERS);
     204        ASSERT(i < REGION_REGISTERS);
    201205        __asm__ volatile ("mov %0 = rr[%1]\n" : "=r" (ret) : "r" (i));
    202206       
     
    212216static inline void rr_write(index_t i, __u64 v)
    213217{
    214 //      ASSERT(i < REGION_REGISTERS);
     218        ASSERT(i < REGION_REGISTERS);
    215219        __asm__ volatile ("mov rr[%0] = %1\n" : : "r" (i), "r" (v));
    216220}
     
    239243
    240244extern void page_arch_init(void);
     245extern pte_t *vhpt_hash(__address page, asid_t asid);
    241246
    242247#endif
Note: See TracChangeset for help on using the changeset viewer.