Changes in kernel/arch/sparc64/src/mm/sun4u/as.c [b0c2075:e2a0d76] in mainline
- File:
-
- 1 edited
-
kernel/arch/sparc64/src/mm/sun4u/as.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/sparc64/src/mm/sun4u/as.c
rb0c2075 re2a0d76 63 63 { 64 64 #ifdef CONFIG_TSB 65 size_t frames = SIZE2FRAMES((ITSB_ENTRY_COUNT + DTSB_ENTRY_COUNT) * 66 sizeof(tsb_entry_t)); 67 68 uintptr_t tsb = PA2KA(frame_alloc(frames, flags, 0)); 65 /* 66 * The order must be calculated with respect to the emulated 67 * 16K page size. 68 * 69 */ 70 uint8_t order = fnzb32(((ITSB_ENTRY_COUNT + DTSB_ENTRY_COUNT) * 71 sizeof(tsb_entry_t)) >> FRAME_WIDTH); 72 73 uintptr_t tsb = PA2KA(frame_alloc(order, flags, 0)); 69 74 if (!tsb) 70 75 return -1; 71 76 72 77 as->arch.itsb = (tsb_entry_t *) tsb; 73 as->arch.dtsb = (tsb_entry_t *) (tsb + 74 ITSB_ENTRY_COUNT *sizeof(tsb_entry_t));78 as->arch.dtsb = (tsb_entry_t *) (tsb + ITSB_ENTRY_COUNT * 79 sizeof(tsb_entry_t)); 75 80 76 81 memsetb(as->arch.itsb,
Note:
See TracChangeset
for help on using the changeset viewer.
