- Timestamp:
- Jan 18, 2016, 4:43:12 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/giet_common/vmem.c
r752 r758 191 191 ix2 = vpn & 0x1FF; // 9 bits for ix2 192 192 193 #if GIET_DEBUG_VMEM 194 if ( _get_proctime() > GIET_DEBUG_VMEM ) 195 _printf("\n@@@ _v2p_add_pte2() : enters for vpn = %x / ppn = %x / PTAB[%d,%d,%d]\n", 196 vpn , ppn , vspace_id , x , y ); 197 #endif 198 193 199 // get page table physical base address 194 200 paddr_t pt1_pbase = _ptabs_paddr[vspace_id][x][y]; … … 214 220 _ptabs_next_pt2[vspace_id][x][y] = pt2_id + 1; 215 221 222 #if GIET_DEBUG_VMEM 223 if ( _get_proctime() > GIET_DEBUG_VMEM ) 224 _printf("\n@@@ _v2p_add_pte2() new pt2_id = %d\n", pt2_id ); 225 #endif 226 216 227 // check overflow 217 228 if (pt2_id == _ptabs_max_pt2) … … 228 239 // set PTD into PT1 229 240 _physical_write( pt1_pbase + 4*ix1, ptd); 241 242 #if GIET_DEBUG_VMEM 243 if ( _get_proctime() > GIET_DEBUG_VMEM ) 244 _printf("\n@@@ _v2p_add_pte2() : &ptd = %l / ptd = %x\n", pt1_pbase + 4*ix1, ptd ); 245 #endif 246 247 230 248 } 231 249 else // valid PTD: compute PT2 base address … … 238 256 _physical_write(pte2_paddr , (PTE_V | flags) ); 239 257 _physical_write(pte2_paddr + 4 , ppn ); 258 259 #if GIET_DEBUG_VMEM 260 if ( _get_proctime() > GIET_DEBUG_VMEM ) 261 _printf("\n@@@ _v2p_add_pte2() : pt1_pbase = %l / pt2_pbase = %l" 262 " / &pte2 = %l / ppn = %x / flags = %x\n", 263 pt1_pbase , pt2_pbase , pte2_paddr , ppn , PTE_V | flags ); 264 #endif 240 265 241 266 // release lock protecting PTAB[vspace_id][x][y]
Note: See TracChangeset
for help on using the changeset viewer.