Changeset fa7d9c4 in mainline
- Timestamp:
- 2006-01-24T20:30:26Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- cc5412e
- Parents:
- 36b01bb2
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/ia64/include/mm/asid.h
r36b01bb2 rfa7d9c4 34 34 typedef __u32 asid_t; 35 35 36 /** 37 * This macro eliminates the stealing branch of asid_get(). 38 */ 39 #define ASID_STEALING_ENABLED 0 40 36 41 /** Number of ia64 RIDs (Region Identifiers) per kernel ASID. */ 37 42 #define RIDS_PER_ASID 7 … … 39 44 40 45 /** 41 * The point is to have ASID_MAX_ARCH big enough 42 * so that it is never reached and the ASID allocation 43 * mechanism in asid_get() never resorts to stealing. 46 * This macro is needed only to compile the kernel. 47 * On ia64, its value is ignored. 44 48 */ 45 #define ASID_MAX_ARCH ((asid_t) -1) /**< This value is never reached. */49 #define ASID_MAX_ARCH 0 46 50 47 51 /** -
arch/mips32/include/mm/asid.h
r36b01bb2 rfa7d9c4 32 32 #include <arch/types.h> 33 33 34 #define ASID_STEALING_ENABLED 1 34 35 #define ASID_MAX_ARCH 255 35 36 -
arch/sparc64/include/mm/asid.h
r36b01bb2 rfa7d9c4 37 37 typedef __u16 asid_t; 38 38 39 #define ASID_STEALING_ENABLED 1 39 40 #define ASID_MAX_ARCH 0x4095 /* 2^12 - 1 */ 40 41 -
genarch/src/mm/asid.c
r36b01bb2 rfa7d9c4 95 95 ipl = interrupts_disable(); 96 96 spinlock_lock(&asidlock); 97 if ( asids_allocated == ASIDS_ALLOCABLE) {97 if (ASID_STEALING_ENABLED && asids_allocated == ASIDS_ALLOCABLE) { 98 98 99 99 /* … … 122 122 123 123 /* 124 * Notify the address space from wich the ASID 125 * was stolen by invalidating its asid member. 126 */ 127 as->asid = ASID_INVALID; 128 spinlock_unlock(&as->lock); 129 130 /* 124 131 * Get the system rid of the stolen ASID. 125 132 */ … … 127 134 tlb_shootdown_finalize(); 128 135 tlb_invalidate_asid(asid); 129 as->asid = ASID_INVALID;130 131 spinlock_unlock(&as->lock);132 136 } else { 133 137
Note:
See TracChangeset
for help on using the changeset viewer.