Changeset a60c748 in mainline for arch/ia64/include/mm/asid.h
- Timestamp:
- 2006-01-30T16:40:23Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 6a3c9a7
- Parents:
- d4efc19
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/ia64/include/mm/asid.h
rd4efc19 ra60c748 32 32 #include <arch/types.h> 33 33 34 typedef __u 32asid_t;34 typedef __u16 asid_t; 35 35 36 36 /** 37 * This macro eliminates the stealing branch of asid_get(). 37 * Number of ia64 RIDs (Region Identifiers) per kernel ASID. 38 * Note that some architectures may support more bits, 39 * but those extra bits are not used by the kernel. 38 40 */ 39 #define ASID_STEALING_ENABLED 040 41 /** Number of ia64 RIDs (Region Identifiers) per kernel ASID. */42 41 #define RIDS_PER_ASID 7 43 #define RID_ OVERFLOW 16777216 /* 2^24*/42 #define RID_MAX 262143 /* 2^18 - 1 */ 44 43 45 44 #define ASID2RID(asid, vrn) (((asid)*RIDS_PER_ASID)+(vrn)) … … 48 47 typedef __u32 rid_t; 49 48 50 /** 51 * This macro is needed only to compile the kernel. 52 * On ia64, its value is ignored. 53 */ 54 #define ASID_MAX_ARCH 0 55 56 /** 57 * Value used to recognize the situation when all ASIDs were already allocated. 58 */ 59 #define ASID_OVERFLOW (RID_OVERFLOW/RIDS_PER_ASID) 60 61 /** On ia64, this is no-op. */ 62 #define asid_put_arch(x) 49 #define ASID_MAX_ARCH (RID_MAX/RIDS_PER_ASID) 63 50 64 51 #endif
Note:
See TracChangeset
for help on using the changeset viewer.