Changeset 295 for soft/giet_vm/giet_common/vmem.c
- Timestamp:
- Mar 26, 2014, 6:44:44 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/giet_common/vmem.c
r258 r295 25 25 // _iommu_add_pte2() 26 26 ////////////////////////////////////////////////////////////////////////////// 27 void _iommu_add_pte2( 28 unsigned int ix1, 29 unsigned int ix2, 30 unsigned int ppn, 31 unsigned int flags) 27 void _iommu_add_pte2( unsigned int ix1, 28 unsigned int ix2, 29 unsigned int ppn, 30 unsigned int flags ) 32 31 { 33 32 unsigned int ptba; … … 41 40 if ((pt->pt1[ix1] & PTE_V) == 0) 42 41 { 43 _tty_get_lock( 0 ); 44 _puts("\n[GIET ERROR] in iommu_add_pte2 function\n"); 45 _puts("the IOMMU PT1 entry is not mapped / ix1 = "); 46 _putx( ix1 ); 47 _puts("\n"); 48 _tty_release_lock( 0 ); 42 _printf("\n[GIET ERROR] in iommu_add_pte2() : " 43 "IOMMU PT1 entry not mapped / ix1 = %d\n", ix1 ); 49 44 _exit(); 50 45 } … … 63 58 // _iommu_inval_pte2() 64 59 ////////////////////////////////////////////////////////////////////////////// 65 void _iommu_inval_pte2(unsigned int ix1, unsigned int ix2) { 60 void _iommu_inval_pte2( unsigned int ix1, 61 unsigned int ix2 ) 62 { 66 63 unsigned int ptba; 67 64 unsigned int * pt_flags; … … 73 70 if ((pt->pt1[ix1] & PTE_V) == 0) 74 71 { 75 _puts("\n[GIET ERROR] in iommu_inval_pte2 function\n"); 76 _puts("the IOMMU PT1 entry is not mapped / ix1 = "); 77 _putx( ix1 ); 78 _puts("\n"); 72 _printf("\n[GIET ERROR] in iommu_inval_pte2() " 73 "IOMMU PT1 entry not mapped / ix1 = %d\n", ix1 ); 79 74 _exit(); 80 75 } … … 95 90 unsigned int vpn, 96 91 unsigned int* ppn, 97 unsigned int* flags )92 unsigned int* flags ) 98 93 { 99 94 unsigned long long ptba;
Note: See TracChangeset
for help on using the changeset viewer.