Changeset 32e8cd1 in mainline for kernel/arch/sparc32/src/mm/frame.c


Ignore:
Timestamp:
2013-12-28T17:16:44Z (10 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c1023bcb
Parents:
f6f22cdb
Message:

code revision
coding style fixes
removal of debugging printouts and other temporary stuff

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/sparc32/src/mm/frame.c

    rf6f22cdb r32e8cd1  
    4646        uintptr_t base;
    4747        size_t size;
    48 
    4948        machine_get_memory_extents(&base, &size);
    50 
     49       
    5150        base = ALIGN_UP(base, FRAME_SIZE);
    5251        size = ALIGN_DOWN(size, FRAME_SIZE);
     
    5453        if (!frame_adjust_zone_bounds(low, &base, &size))
    5554                return;
    56 
     55       
    5756        if (low) {
    5857                zone_create(ADDR2PFN(base), SIZE2FRAMES(size),
    5958                    BOOT_PT_START_FRAME + BOOT_PT_SIZE_FRAMES,
    6059                    ZONE_AVAILABLE | ZONE_LOWMEM);
    61 
    62                 printf("low_zone: %d frames\n", SIZE2FRAMES(size));
    6360        } else {
    6461                pfn_t conf = zone_external_conf_alloc(SIZE2FRAMES(size));
     
    6663                        zone_create(ADDR2PFN(base), SIZE2FRAMES(size), conf,
    6764                            ZONE_AVAILABLE | ZONE_HIGHMEM);
    68 
    69                 printf("high zone: %d frames\n", SIZE2FRAMES(size));
    7065        }
    71 
    72         printf("free: %d\n", frame_total_free_get());
    7366}
    7467
    7568void physmem_print(void)
    7669{
    77 
     70        // FIXME TODO
    7871}
    7972
     
    8275{
    8376        frame_common_arch_init(true);
    84 
    85         /* blacklist boot page table */
     77       
     78        /* Blacklist boot page table */
    8679        frame_mark_unavailable(BOOT_PT_START_FRAME, BOOT_PT_SIZE_FRAMES);
    87         printf("free: %d\n", frame_total_free_get());
    88         //machine_frame_init();
    8980}
    9081
     
    9586}
    9687
    97 /** Frees the boot page table. */
    98 /*void boot_page_table_free(void)
    99 {
    100         unsigned int i;
    101         for (i = 0; i < BOOT_PT_SIZE_FRAMES; i++)
    102                 frame_free(i * FRAME_SIZE + BOOT_PT_ADDRESS);
    103 }*/
    104 
    10588/** @}
    10689 */
Note: See TracChangeset for help on using the changeset viewer.