Changeset 0d387d2 in mainline


Ignore:
Timestamp:
2008-07-27T13:28:22Z (16 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c32a6f37
Parents:
6c296a9
Message:

finer granularity (256 KiB)

File:
1 edited

Legend:

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

    r6c296a9 r0d387d2  
    4444#include <print.h>
    4545
    46 #define ZERO_PAGE_MASK          TLB_PAGE_MASK_1M
    47 #define ZERO_FRAMES                     4096
    48 #define ZERO_PAGE_WIDTH         20  /* 1M */
     46#define ZERO_PAGE_MASK          TLB_PAGE_MASK_256K
     47#define ZERO_FRAMES                     16384
     48#define ZERO_PAGE_WIDTH         18  /* 256K */
    4949#define ZERO_PAGE_SIZE          (1 << ZERO_PAGE_WIDTH)
    5050#define ZERO_PAGE_ASID          ASID_INVALID
     
    9696 *
    9797 */
    98 static bool frame_safe(pfn_t frame) __attribute__((unused));
    9998static bool frame_safe(pfn_t frame)
    10099{
     
    242241        count_t i;
    243242        for (i = 0; i < phys_regions_count; i++) {
    244                 printf("%#10x %10u\n",
     243                printf("%#010x %10u\n",
    245244                        PFN2ADDR(phys_regions[i].start), PFN2ADDR(phys_regions[i].count));
    246245        }       
Note: See TracChangeset for help on using the changeset viewer.