Changeset 432 for trunk/hal/tsar_mips32/core/hal_ppm.c
- Timestamp:
- Feb 14, 2018, 3:39:35 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/hal/tsar_mips32/core/hal_ppm.c
r409 r432 43 43 // This hal_ppm_init() function initializes the pages_tbl[] array used by the generic 44 44 // kmem memory allocator in the local cluster. This array starts in first free page 45 // after kernel code, as defined by the ' offset' field in boot_info.45 // after kernel code, as defined by the 'pages_offset' field in boot_info. 46 46 ////////////////////////////////////////////////////////////////////////////////////////// 47 47 … … 101 101 } 102 102 103 // printk("\n@@@ in %s : reserved = %d / total = %d\n", __FUNCTION__, reserved_pages, pages_nr ); 104 103 105 // - set PG_RESERVED flag for reserved pages (kernel code & pages_tbl[]) 104 106 // - release all other pages to populate the free lists … … 112 114 113 115 // TODO optimisation : decompose this enormous set of small pages 114 // to several sets of big pages with various order values 116 // to several sets of big pages with various order values [AG] 117 118 // if( (i < (reserved_pages+10)) || (i > (pages_nr-5)) ) ppm_print(); 119 115 120 } 116 121 122 // assert( false , __FUNCTION__ , "PMM init completed\n"); 123 117 124 // check consistency 118 125 return ppm_assert_order( ppm );
Note: See TracChangeset
for help on using the changeset viewer.