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