Changeset 53 for trunk/kernel/mm/page.c


Ignore:
Timestamp:
Jun 26, 2017, 4:22:00 PM (7 years ago)
Author:
alain
Message:

Compilation OK pout TSAR

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kernel/mm/page.c

    r23 r53  
    245245        void    * dst_base;
    246246
    247         if( dst->order != src->order )
    248         {
    249                 printk("\n[PANIC] in %s : src size != dst size\n", __FUNCTION__ );
    250                 hal_core_sleep();
    251         }
     247        assert( (dst->order == src->order) , __FUNCTION__ , "src size != dst size\n" );
    252248
    253249        size = (1 << dst->order) * CONFIG_PPM_PAGE_SIZE;
    254         src_base = ppm_page2base( src );
    255         dst_base = ppm_page2base( dst );
     250        src_base = ppm_page2vaddr( src );
     251        dst_base = ppm_page2vaddr( dst );
    256252
    257253        memcpy( dst_base , src_base , size );
     
    265261
    266262        size = (1 << page->order) * CONFIG_PPM_PAGE_SIZE;
    267         base = ppm_page2base( page );
    268 
    269 // kmem_print_kcm_table();
    270 
    271 // printk("\n@@@ in page_zero : size = %x / base = %x / kcm_tbl = %x\n",
    272 //        size , (uint32_t)base , (uint32_t)(&LOCAL_CLUSTER->kcm_tbl[0] ) );
     263        base = ppm_page2vaddr( page );
    273264
    274265        memset( base , 0 , size );
    275 
    276 // kmem_print_kcm_table();
    277 
    278266}
    279267
     
    283271        printk("*** Page %d : base = %x / flags = %x / order = %d / count = %d\n",
    284272                page->index,
    285                 ppm_page2base( page ),
     273                ppm_page2vaddr( page ),
    286274                page->flags,
    287275                page->order,
Note: See TracChangeset for help on using the changeset viewer.