Changeset 44d0758 in mainline
- Timestamp:
- 2006-11-22T18:35:17Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- aca95f6b
- Parents:
- eb353b3
- Location:
- kernel
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/Makefile
reb353b3 r44d0758 90 90 ifeq ($(CONFIG_NS16550),y) 91 91 DEFS += -DCONFIG_NS16550 92 endif 93 94 ifeq ($(CONFIG_VIRT_IDX_CACHE),y) 95 DEFS += -DCONFIG_VIRT_IDX_CACHE 92 96 endif 93 97 -
kernel/arch/sparc64/src/mm/tlb.c
reb353b3 r44d0758 112 112 data.l = locked; 113 113 data.cp = cacheable; 114 #ifdef CONFIG_VIRT_IDX_CACHE 114 115 data.cv = cacheable; 116 #endif /* CONFIG_VIRT_IDX_CACHE */ 115 117 data.p = true; 116 118 data.w = true; … … 147 149 data.l = false; 148 150 data.cp = t->c; 151 #ifdef CONFIG_VIRT_IDX_CACHE 149 152 data.cv = t->c; 153 #endif /* CONFIG_VIRT_IDX_CACHE */ 150 154 data.p = t->k; /* p like privileged */ 151 155 data.w = ro ? false : t->w; … … 181 185 data.l = false; 182 186 data.cp = t->c; 187 #ifdef CONFIG_VIRT_IDX_CACHE 183 188 data.cv = t->c; 189 #endif /* CONFIG_VIRT_IDX_CACHE */ 184 190 data.p = t->k; /* p like privileged */ 185 191 data.w = false; -
kernel/arch/sparc64/src/mm/tsb.c
reb353b3 r44d0758 101 101 tsb->data.pfn = t->frame >> PAGE_WIDTH; 102 102 tsb->data.cp = t->c; 103 #ifdef CONFIG_VIRT_IDX_CACHE 103 104 tsb->data.cv = t->c; 105 #endif /* CONFIG_VIRT_IDX_CACHE */ 104 106 tsb->data.p = t->k; /* p as privileged */ 105 107 tsb->data.v = t->p; … … 141 143 tsb->data.pfn = t->frame >> PAGE_WIDTH; 142 144 tsb->data.cp = t->c; 145 #ifdef CONFIG_VIRT_IDX_CACHE 143 146 tsb->data.cv = t->c; 147 #endif /* CONFIG_VIRT_IDX_CACHE */ 144 148 tsb->data.p = t->k; /* p as privileged */ 145 149 tsb->data.w = ro ? false : t->w; -
kernel/arch/sparc64/src/start.S
reb353b3 r44d0758 123 123 membar #Sync 124 124 125 #ifdef CONFIG_VIRT_IDX_CACHE 126 #define TTE_LOW_DATA(imm) (TTE_CP | TTE_CV | TTE_P | LMA | (imm)) 127 #else /* CONFIG_VIRT_IDX_CACHE */ 128 #define TTE_LOW_DATA(imm) (TTE_CP | TTE_P | LMA | (imm)) 129 #endif /* CONFIG_VIRT_IDX_CACHE */ 130 125 131 #define SET_TLB_DATA(r1, r2, imm) \ 126 set TTE_ CV | TTE_CP | TTE_P | LMA | imm, %r1; \132 set TTE_LOW_DATA(imm), %r1; \ 127 133 or %r1, %l5, %r1; \ 128 134 mov PAGESIZE_4M, %r2; \ … … 349 355 .global kernel_8k_tlb_data_template 350 356 kernel_8k_tlb_data_template: 351 .quad ((1 << TTE_V_SHIFT) | TTE_CV | TTE_CP | TTE_P | TTE_W) 357 #ifdef CONFIG_VIRT_IDX_CACHE 358 .quad ((1 << TTE_V_SHIFT) | (PAGESIZE_8K << TTE_SIZE_SHIFT) | TTE_CP | TTE_CV | TTE_P | TTE_W) 359 #else /* CONFIG_VIRT_IDX_CACHE */ 360 .quad ((1 << TTE_V_SHIFT) | (PAGESIZE_8K << TTE_SIZE_SHIFT) | TTE_CP | TTE_P | TTE_W) 361 #endif /* CONFIG_VIRT_IDX_CACHE */ -
kernel/kernel.config
reb353b3 r44d0758 99 99 100 100 # Virtually indexed cache support 101 ! [ARCH=sparc64] CONFIG_VIRT_IDX_ SUPPORT(n/y)101 ! [ARCH=sparc64] CONFIG_VIRT_IDX_CACHE (n/y) 102 102 103 103
Note:
See TracChangeset
for help on using the changeset viewer.