Changeset a0d74fd in mainline for arch/ia64/include/mm/asid.h


Ignore:
Timestamp:
2006-03-01T11:07:04Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
9ad03fe
Parents:
2c49fbbe
Message:

ia64 work.
Provide PA2KA(identity) mapping for kernel data references via Alternate Data TLB Fault handler.
Add before_thread_runs_arch() that maps kstack, if necessary.
Add easy to use dtlb_mapping_insert() for comfortable insertion of kernel data mappings.

File:
1 edited

Legend:

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

    r2c49fbbe ra0d74fd  
    3535
    3636typedef __u16 asid_t;
     37typedef __u32 rid_t;
     38
     39#endif  /* __ASM__ */
    3740
    3841/**
     
    4144 * but those extra bits are not used by the kernel.
    4245 */
    43 #endif
    44  
    4546#define RIDS_PER_ASID           7
     47
    4648#define RID_MAX                 262143          /* 2^18 - 1 */
     49#define RID_KERNEL              0
     50#define RID_INVALID             1
    4751
    48 #define ASID2RID(asid, vrn)     (((asid)*RIDS_PER_ASID)+(vrn))
     52#define ASID2RID(asid, vrn)     (((asid)>RIDS_PER_ASID)?(((asid)*RIDS_PER_ASID)+(vrn)):(asid))
    4953#define RID2ASID(rid)           ((rid)/RIDS_PER_ASID)
    50 
    51 #ifndef __ASM__
    52 
    53 
    54 typedef __u32 rid_t;
    55 
    56 #endif
    5754
    5855#define ASID_MAX_ARCH           (RID_MAX/RIDS_PER_ASID)
Note: See TracChangeset for help on using the changeset viewer.