Changeset 53 for trunk/kernel/mm/page.c
- Timestamp:
- Jun 26, 2017, 4:22:00 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/mm/page.c
r23 r53 245 245 void * dst_base; 246 246 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" ); 252 248 253 249 size = (1 << dst->order) * CONFIG_PPM_PAGE_SIZE; 254 src_base = ppm_page2 base( src );255 dst_base = ppm_page2 base( dst );250 src_base = ppm_page2vaddr( src ); 251 dst_base = ppm_page2vaddr( dst ); 256 252 257 253 memcpy( dst_base , src_base , size ); … … 265 261 266 262 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 ); 273 264 274 265 memset( base , 0 , size ); 275 276 // kmem_print_kcm_table();277 278 266 } 279 267 … … 283 271 printk("*** Page %d : base = %x / flags = %x / order = %d / count = %d\n", 284 272 page->index, 285 ppm_page2 base( page ),273 ppm_page2vaddr( page ), 286 274 page->flags, 287 275 page->order,
Note: See TracChangeset
for help on using the changeset viewer.