Changeset 610 for trunk/hal/tsar_mips32/core/hal_uspace.c
- Timestamp:
- Dec 27, 2018, 7:38:58 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/hal/tsar_mips32/core/hal_uspace.c
r457 r610 43 43 uint32_t dst = (uint32_t)k_dst; 44 44 45 #if DEBUG_HAL_USPACE 46 thread_t * this = CURRENT_THREAD; 47 printk("\n[%s] thread[%x,%x] enter in cluster %x / u_src %x / k_dst %x / size %d\n", 48 __FUNCTION__, this->process->pid, this->trdid, local_cxy, u_src, k_dst, size ); 49 #endif 50 45 51 if( (dst & 0x3) || (src & 0x3) ) wsize = 0; // do it all in bytes 46 52 else wsize = size >> 2; … … 80 86 81 87 hal_restore_irq( save_sr ); 88 89 #if DEBUG_HAL_USPACE 90 printk("\n[%s] thread[%x,%x] exit\n", 91 __FUNCTION__, this->process->pid, this->trdid ); 92 #endif 82 93 83 94 } // end hal_copy_from_uspace() … … 94 105 uint32_t dst = (uint32_t)u_dst; 95 106 107 #if DEBUG_HAL_USPACE 108 thread_t * this = CURRENT_THREAD; 109 printk("\n[%s] thread[%x,%x] enter in cluster %x / k_src %x / u_dst %x / size %d\n", 110 __FUNCTION__, this->process->pid, this->trdid, local_cxy, k_src, u_dst, size ); 111 #endif 112 96 113 if( (dst & 0x3) || (src & 0x3) ) wsize = 0; // not aligned 97 114 else wsize = size >> 2; … … 118 135 asm volatile( 119 136 "mfc2 $15, $1 \n" /* save MMU_MODE */ 120 "l w$13, 0(%0) \n" /* read data from kernel space */137 "lb $13, 0(%0) \n" /* read data from kernel space */ 121 138 "ori $14, $0, 0x7 \n" 122 139 "mtc2 $14, $1 \n" /* MMU_MODE <= DTLB ON */ … … 130 147 131 148 hal_restore_irq( save_sr ); 149 150 #if DEBUG_HAL_USPACE 151 printk("\n[%s] thread[%x,%x] exit\n", 152 __FUNCTION__, this->process->pid, this->trdid ); 153 #endif 132 154 133 155 } // end hal_copy_to_uspace()
Note: See TracChangeset
for help on using the changeset viewer.