- File:
-
- 1 edited
-
libcfa/src/concurrency/kernel.cfa (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/kernel.cfa
r1c40091 r57c764c4 10 10 // Created On : Tue Jan 17 12:27:26 2017 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Thu Nov 21 16:46:59201913 // Update Count : 2 712 // Last Modified On : Thu Jun 20 17:21:23 2019 13 // Update Count : 25 14 14 // 15 15 … … 133 133 NULL, 134 134 NULL, 135 { 1, false, false } 135 { 1, false, false }, 136 6u //this should be seeded better but due to a bug calling rdtsc doesn't work 136 137 }; 137 138 … … 260 261 //Main of the processor contexts 261 262 void main(processorCtx_t & runner) { 263 // Because of a bug, we couldn't initialized the seed on construction 264 // Do it here 265 kernelTLS.rand_seed ^= rdtscl(); 266 262 267 processor * this = runner.proc; 263 268 verify(this); … … 819 824 if(thrd) { 820 825 int len = snprintf( abort_text, abort_text_size, "Error occurred while executing thread %.256s (%p)", thrd->self_cor.name, thrd ); 821 __cfaabi_ bits_write( STDERR_FILENO,abort_text, len );826 __cfaabi_dbg_bits_write( abort_text, len ); 822 827 823 828 if ( &thrd->self_cor != thrd->curr_cor ) { 824 829 len = snprintf( abort_text, abort_text_size, " in coroutine %.256s (%p).\n", thrd->curr_cor->name, thrd->curr_cor ); 825 __cfaabi_ bits_write( STDERR_FILENO,abort_text, len );830 __cfaabi_dbg_bits_write( abort_text, len ); 826 831 } 827 832 else { 828 __cfaabi_ bits_write( STDERR_FILENO,".\n", 2 );833 __cfaabi_dbg_bits_write( ".\n", 2 ); 829 834 } 830 835 } 831 836 else { 832 837 int len = snprintf( abort_text, abort_text_size, "Error occurred outside of any thread.\n" ); 833 __cfaabi_ bits_write( STDERR_FILENO,abort_text, len );838 __cfaabi_dbg_bits_write( abort_text, len ); 834 839 } 835 840 } … … 842 847 843 848 extern "C" { 844 void __cfaabi_ bits_acquire() {849 void __cfaabi_dbg_bits_acquire() { 845 850 lock( kernel_debug_lock __cfaabi_dbg_ctx2 ); 846 851 } 847 852 848 void __cfaabi_ bits_release() {853 void __cfaabi_dbg_bits_release() { 849 854 unlock( kernel_debug_lock ); 850 855 }
Note:
See TracChangeset
for help on using the changeset viewer.