Changeset a60c748 in mainline
- 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
- Files:
-
- 1 deleted
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/ia64/Makefile.inc
rd4efc19 ra60c748 52 52 53 53 CONFIG_ASID = y 54 54 CONFIG_ASID_FIFO = y 55 55 56 56 ARCH_SOURCES = \ … … 65 65 arch/$(ARCH)/src/ivt.S \ 66 66 arch/$(ARCH)/src/interrupt.c \ 67 arch/$(ARCH)/src/mm/asid.c \68 67 arch/$(ARCH)/src/mm/frame.c \ 69 68 arch/$(ARCH)/src/mm/page.c \ -
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 -
arch/mips32/include/mm/asid.h
rd4efc19 ra60c748 32 32 #include <arch/types.h> 33 33 34 #define ASID_STEALING_ENABLED 1 35 #define ASID_MAX_ARCH 255 34 #define ASID_MAX_ARCH 255 /* 2^8 - 1 */ 36 35 37 36 typedef __u8 asid_t; -
arch/sparc64/include/mm/asid.h
rd4efc19 ra60c748 37 37 typedef __u16 asid_t; 38 38 39 #define ASID_STEALING_ENABLED 140 39 #define ASID_MAX_ARCH 8191 /* 2^13 - 1 */ 41 40 -
genarch/src/mm/asid.c
rd4efc19 ra60c748 95 95 ipl = interrupts_disable(); 96 96 spinlock_lock(&asidlock); 97 if ( ASID_STEALING_ENABLED &&asids_allocated == ASIDS_ALLOCABLE) {97 if (asids_allocated == ASIDS_ALLOCABLE) { 98 98 99 99 /*
Note:
See TracChangeset
for help on using the changeset viewer.