Changeset 495 for soft/giet_vm/giet_common/vmem.c
- Timestamp:
- Feb 8, 2015, 12:55:35 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/giet_common/vmem.c
r476 r495 11 11 #include <giet_config.h> 12 12 13 ///////////////////////////////////////// /////////13 ///////////////////////////////////////// 14 14 void _v2p_translate( page_table_t* ptab, 15 15 unsigned int vpn, … … 36 36 if ( (pte1 & PTE_V) == 0 ) 37 37 { 38 _puts("\n[VMEM ERROR] _v2p_translate() : pte1 unmapped\n"); 38 _printf("\n[VMEM ERROR] _v2p_translate() : pte1 unmapped\n" 39 " vpn = %x / ptab = %x / pte1_vaddr = %x / pte1_value = %x\n", 40 vpn , (unsigned int)ptab, &(ptab->pt1[ix1]) , pte1 ); 39 41 _exit(); 40 42 } … … 50 52 { 51 53 52 // get physical addresses of pte2 (two 32 bits words)53 ptba = ( unsigned long long) (pte1 & 0x0FFFFFFF) << 12;54 // get physical addresses of pte2 55 ptba = ((unsigned long long)(pte1 & 0x0FFFFFFF)) << 12; 54 56 pte2_paddr = ptba + 8*ix2; 57 58 // split physical address in two 32 bits words 55 59 pte2_lsb = (unsigned int) pte2_paddr; 56 60 pte2_msb = (unsigned int) (pte2_paddr >> 32); … … 87 91 if ( (flags_value & PTE_V) == 0 ) 88 92 { 89 _puts("\n[VMEM ERROR] _v2p_translate() : pte2 unmapped\n"); 93 _printf("\n[VMEM ERROR] _v2p_translate() : pte2 unmapped\n" 94 " vpn = %x / ptab = %x / pte1_value = %x\n" 95 " pte2_paddr = %l / ppn = %x / flags = %x\n", 96 vpn , ptab , pte1 , pte2_paddr , ppn_value , flags_value ); 90 97 _exit(); 91 98 }
Note: See TracChangeset
for help on using the changeset viewer.