Changeset 124 for trunk/kernel/kern
- Timestamp:
- Jul 3, 2017, 2:36:39 PM (7 years ago)
- Location:
- trunk/kernel/kern
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/kern/cluster.c
r120 r124 159 159 __FUNCTION__ , local_cxy , hal_get_cycles() ); 160 160 161 hal_ wbflush();161 hal_fence(); 162 162 163 163 return 0; -
trunk/kernel/kern/core.c
r101 r124 101 101 core->cycles = cycles + elapsed; 102 102 core->ticks_nr = ticks_nr + (elapsed / core->ticks_period); 103 hal_ wbflush();103 hal_fence(); 104 104 } 105 105 … … 145 145 // update core descriptor 146 146 core->usage = usage; 147 hal_ wbflush();147 hal_fence(); 148 148 149 149 #if CONFIG_SHOW_CPU_USAGE … … 164 164 core->usage = 0; 165 165 core->thread_idle->ticks_nr = 0; 166 hal_ wbflush();166 hal_fence(); 167 167 } 168 168 -
trunk/kernel/kern/kernel_init.c
r103 r124 670 670 hal_set_current_thread( thread ); 671 671 672 list_root_init( &thread->locks_root ); 673 xlist_root_init( XPTR( local_cxy, &thread->xlocks_root ) ); 674 672 675 // CP0 in I/O cluster initialises TXT0 chdev descriptor 673 676 if( (core_lid == 0) && (core_cxy == info->io_cxy) ) txt0_device_init( info ); … … 727 730 // CP0 initializes the process_zero descriptor 728 731 if( core_lid == 0 ) process_reference_init( &process_zero , 0 , XPTR_NULL ); 732 733 #ifdef __HAL_x86_64__ 734 return; /* XXX temporary */ 735 #endif 729 736 730 737 // CP0 allocates and initialises the internal peripheral chdev descriptors. -
trunk/kernel/kern/process.c
r101 r124 165 165 // initalise signal manager TODO [AG] 166 166 167 hal_ wbflush();167 hal_fence(); 168 168 169 169 process_dmsg("\n[INFO] %s : exit for process %x in cluster %x\n", … … 226 226 // initalise signal manager TODO [AG] 227 227 228 hal_ wbflush();228 hal_fence(); 229 229 230 230 return 0; … … 265 265 266 266 // synchronize memory 267 hal_ wbflush();267 hal_fence(); 268 268 269 269 // From this point, the process descriptor is unreachable … … 815 815 process_dmsg("\n[INFO] %s successfully exit in cluster %x\n", __FUNCTION__ , local_cxy ); 816 816 817 hal_ wbflush();817 hal_fence(); 818 818 819 819 } // end process_init_create()
Note: See TracChangeset
for help on using the changeset viewer.