Changeset 8440473 in mainline
- Timestamp:
- 2006-10-26T21:36:32Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 8c84448
- Parents:
- 19dce27
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/sparc64/include/mm/tsb.h
r19dce27 r8440473 43 43 * in TLBs - only one TLB entry will do. 44 44 */ 45 #define TSB_SIZE 2 45 #define TSB_SIZE 2 /* when changing this, change as.c as well */ 46 46 #define ITSB_ENTRY_COUNT (512*(1<<TSB_SIZE)) 47 47 #define DTSB_ENTRY_COUNT (512*(1<<TSB_SIZE)) -
kernel/arch/sparc64/include/trap/mmu.h
r19dce27 r8440473 61 61 * First, try to refill TLB from TSB. 62 62 */ 63 64 63 #ifdef CONFIG_TSB 65 64 ldxa [%g0] ASI_IMMU, %g1 ! read TSB Tag Target Register … … 85 84 #ifdef CONFIG_TSB 86 85 ldxa [%g0] ASI_DMMU, %g1 ! read TSB Tag Target Register 87 srlx %g1, TSB_TAG_TARGET_CONTEXT_SHIFT, %g2 ! is this kernel miss?86 srlx %g1, TSB_TAG_TARGET_CONTEXT_SHIFT, %g2 ! is this a kernel miss? 88 87 brz,pn %g2, 0f 89 88 ldxa [%g0] ASI_DMMU_TSB_8KB_PTR_REG, %g3 ! read TSB 8K Pointer -
kernel/arch/sparc64/src/start.S
r19dce27 r8440473 68 68 */ 69 69 70 wrpr %g0, NWINDOWS - 2, %cansave 70 wrpr %g0, NWINDOWS - 2, %cansave ! set maximum saveable windows 71 71 wrpr %g0, 0, %canrestore ! get rid of windows we will never need again 72 72 wrpr %g0, 0, %otherwin ! make sure the window state is consistent -
kernel/generic/src/mm/as.c
r19dce27 r8440473 193 193 /* 194 194 * Destroy address space areas of the address space. 195 * The B+t ee must be walked carefully because it is195 * The B+tree must be walked carefully because it is 196 196 * also being destroyed. 197 197 */ … … 417 417 * Finish TLB shootdown sequence. 418 418 */ 419 tlb_invalidate_pages( AS->asid, area->base + pages*PAGE_SIZE, area->pages - pages);419 tlb_invalidate_pages(as->asid, area->base + pages*PAGE_SIZE, area->pages - pages); 420 420 tlb_shootdown_finalize(); 421 421 … … 610 610 /* 611 611 * Now we are committed to sharing the area. 612 * First prepare the area for sharing.612 * First, prepare the area for sharing. 613 613 * Then it will be safe to unlock it. 614 614 */ -
kernel/generic/src/mm/backend_anon.c
r19dce27 r8440473 133 133 * the different causes 134 134 */ 135 frame = (uintptr_t) frame_alloc(ONE_FRAME, 0);135 frame = (uintptr_t) frame_alloc(ONE_FRAME, 0); 136 136 memsetb(PA2KA(frame), FRAME_SIZE, 0); 137 137 } -
uspace/fb/fb.c
r19dce27 r8440473 1247 1247 fb_addr = as_get_mappable_page(asz); 1248 1248 1249 map_physmem(fb_ph_addr, fb_addr, ALIGN_UP(asz, PAGE_SIZE) >>PAGE_WIDTH,1249 map_physmem(fb_ph_addr, fb_addr, ALIGN_UP(asz, PAGE_SIZE) >> PAGE_WIDTH, 1250 1250 AS_AREA_READ | AS_AREA_WRITE); 1251 1251
Note:
See TracChangeset
for help on using the changeset viewer.