Changeset 610 for trunk/kernel/mm/vmm.c
- Timestamp:
- Dec 27, 2018, 7:38:58 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/mm/vmm.c
r606 r610 1444 1444 #endif 1445 1445 1446 // compute target cluster1447 1446 page_t * page_ptr; 1448 1447 cxy_t page_cxy; … … 1611 1610 #if (DEBUG_VMM_GET_ONE_PPN & 0x1) 1612 1611 if( DEBUG_VMM_GET_ONE_PPN < (uint32_t)hal_get_cycles() ) 1613 printk("\n[%s] thread[%x,%x] for vpn %x / both mapper & BSS\n" ,1612 printk("\n[%s] thread[%x,%x] for vpn %x / both mapper & BSS\n" 1614 1613 " %d bytes from mapper / %d bytes from BSS\n", 1615 1614 __FUNCTION__, this->process->pid, this->trdid, vpn, … … 1674 1673 (intptr_t)vpn<<CONFIG_PPM_PAGE_SHIFT, 1675 1674 &vseg ); 1676 1677 1675 if( error ) 1678 1676 { … … 1933 1931 #endif 1934 1932 1933 // access local GPT to get GPT_COW flag 1934 bool_t cow = hal_gpt_pte_is_cow( &(process->vmm.gpt), vpn ); 1935 1936 if( cow == false ) return EXCP_USER_ERROR; 1937 1935 1938 // get local vseg 1936 1939 error = vmm_get_vseg( process, 1937 1940 (intptr_t)vpn<<CONFIG_PPM_PAGE_SHIFT, 1938 1941 &vseg ); 1939 1940 1942 if( error ) 1941 1943 { … … 1950 1952 ref_ptr = GET_PTR( process->ref_xp ); 1951 1953 1952 // build relevant extended pointers on GPT and GPT lock1954 // build relevant extended pointers on relevant GPT and GPT lock 1953 1955 // - access local GPT for a private vseg 1954 1956 // - access reference GPT for a public vseg
Note: See TracChangeset
for help on using the changeset viewer.