- File:
-
- 1 edited
-
src/libcfa/concurrency/coroutine.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/libcfa/concurrency/coroutine.c
red235b6 r83a071f9 1 // -*- Mode: CFA -*- 1 2 // 2 3 // Cforall Version 1.0.0 Copyright (C) 2016 University of Waterloo … … 9 10 // Author : Thierry Delisle 10 11 // Created On : Mon Nov 28 12:27:26 2016 11 // Last Modified By : Peter A. Buhr12 // Last Modified On : Fri Jul 21 22:34:57 201713 // Update Count : 112 // Last Modified By : Thierry Delisle 13 // Last Modified On : Mon Nov 28 12:27:26 2016 14 // Update Count : 0 14 15 // 15 16 … … 25 26 } 26 27 27 #include "kernel_private.h" 28 #include "kernel" 29 #include "libhdr.h" 28 30 29 31 #define __CFA_INVOKE_PRIVATE__ 30 32 #include "invoke.h" 31 33 34 extern volatile thread_local processor * this_processor; 32 35 33 36 //----------------------------------------------------------------------------- … … 74 77 } 75 78 76 void ^?{}(coStack_t & this) {77 if ( ! this.userStack && this.storage) {79 void ^?{}(coStack_t& this) { 80 if ( ! this.userStack ) { 78 81 LIB_DEBUG_DO( 79 82 if ( mprotect( this.storage, pageSize, PROT_READ | PROT_WRITE ) == -1 ) { … … 122 125 //TEMP HACK do this on proper kernel startup 123 126 if(pageSize == 0ul) pageSize = sysconf( _SC_PAGESIZE ); 124 125 LIB_DEBUG_PRINT_SAFE("FRED");126 127 127 128 size_t cxtSize = libCeiling( sizeof(machine_context_t), 8 ); // minimum alignment
Note:
See TracChangeset
for help on using the changeset viewer.