Changeset 8440473 in mainline


Ignore:
Timestamp:
2006-10-26T21:36:32Z (18 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
8c84448
Parents:
19dce27
Message:

Minor changes. Some coding style fixes and also a type (tee vs. tree).
One AS → as change.

Files:
6 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/sparc64/include/mm/tsb.h

    r19dce27 r8440473  
    4343 * in TLBs - only one TLB entry will do.
    4444 */
    45 #define TSB_SIZE                        2                       /* when changing this, change as.c as well */
     45#define TSB_SIZE                        2       /* when changing this, change as.c as well */
    4646#define ITSB_ENTRY_COUNT                (512*(1<<TSB_SIZE))
    4747#define DTSB_ENTRY_COUNT                (512*(1<<TSB_SIZE))
  • kernel/arch/sparc64/include/trap/mmu.h

    r19dce27 r8440473  
    6161         * First, try to refill TLB from TSB.
    6262         */
    63 
    6463#ifdef CONFIG_TSB
    6564        ldxa [%g0] ASI_IMMU, %g1                        ! read TSB Tag Target Register
     
    8584#ifdef CONFIG_TSB
    8685        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?
    8887        brz,pn %g2, 0f
    8988        ldxa [%g0] ASI_DMMU_TSB_8KB_PTR_REG, %g3        ! read TSB 8K Pointer
  • kernel/arch/sparc64/src/start.S

    r19dce27 r8440473  
    6868         */
    6969
    70         wrpr %g0, NWINDOWS - 2, %cansave                ! set maximum saveable windows
     70        wrpr %g0, NWINDOWS - 2, %cansave        ! set maximum saveable windows
    7171        wrpr %g0, 0, %canrestore                ! get rid of windows we will never need again
    7272        wrpr %g0, 0, %otherwin                  ! make sure the window state is consistent
  • kernel/generic/src/mm/as.c

    r19dce27 r8440473  
    193193        /*
    194194         * Destroy address space areas of the address space.
    195          * The B+tee must be walked carefully because it is
     195         * The B+tree must be walked carefully because it is
    196196         * also being destroyed.
    197197         */     
     
    417417                 * Finish TLB shootdown sequence.
    418418                 */
    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);
    420420                tlb_shootdown_finalize();
    421421               
     
    610610        /*
    611611         * Now we are committed to sharing the area.
    612          * First prepare the area for sharing.
     612         * First, prepare the area for sharing.
    613613         * Then it will be safe to unlock it.
    614614         */
  • kernel/generic/src/mm/backend_anon.c

    r19dce27 r8440473  
    133133                 *   the different causes
    134134                 */
    135                 frame = (uintptr_t)frame_alloc(ONE_FRAME, 0);
     135                frame = (uintptr_t) frame_alloc(ONE_FRAME, 0);
    136136                memsetb(PA2KA(frame), FRAME_SIZE, 0);
    137137        }
  • uspace/fb/fb.c

    r19dce27 r8440473  
    12471247        fb_addr = as_get_mappable_page(asz);
    12481248       
    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,
    12501250                    AS_AREA_READ | AS_AREA_WRITE);
    12511251
Note: See TracChangeset for help on using the changeset viewer.