Changeset 492 for trunk/hal/tsar_mips32/core/hal_context.c
- Timestamp:
- Aug 22, 2018, 11:55:48 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/hal/tsar_mips32/core/hal_context.c
r459 r492 119 119 error_t hal_cpu_context_alloc( thread_t * thread ) 120 120 { 121 assert( (sizeof(hal_cpu_context_t) <= CONFIG_CPU_CTX_SIZE) , __FUNCTION__ ,121 assert( (sizeof(hal_cpu_context_t) <= CONFIG_CPU_CTX_SIZE) , 122 122 "illegal CPU context size" ); 123 123 … … 146 146 hal_cpu_context_t * context = (hal_cpu_context_t *)thread->cpu_context; 147 147 148 assert( (context != NULL ), __FUNCTION__,"CPU context not allocated" );148 assert( (context != NULL ), "CPU context not allocated" ); 149 149 150 150 // initialisation depends on thread type … … 235 235 else // current == child thread 236 236 { 237 assert( (current == child_ptr) , __FUNCTION__ ,"current = %x / child = %x\n");237 assert( (current == child_ptr) , "current = %x / child = %x\n"); 238 238 } 239 239 } // end hal_cpu_context_fork() … … 300 300 error_t hal_fpu_context_alloc( thread_t * thread ) 301 301 { 302 assert( (sizeof(hal_fpu_context_t) <= CONFIG_FPU_CTX_SIZE) , __FUNCTION__ ,302 assert( (sizeof(hal_fpu_context_t) <= CONFIG_FPU_CTX_SIZE) , 303 303 "illegal CPU context size" ); 304 304 … … 322 322 hal_fpu_context_t * context = thread->fpu_context; 323 323 324 assert( (context != NULL) , __FUNCTION__ , "fpu context not allocated" );324 assert( (context != NULL) , "fpu context not allocated" ); 325 325 326 326 memset( context , 0 , sizeof(hal_fpu_context_t) ); … … 331 331 thread_t * src ) 332 332 { 333 assert( (src != NULL) , __FUNCTION__ , "src thread pointer is NULL\n");334 assert( (dst != NULL) , __FUNCTION__ , "dst thread pointer is NULL\n");333 assert( (src != NULL) , "src thread pointer is NULL\n"); 334 assert( (dst != NULL) , "dst thread pointer is NULL\n"); 335 335 336 336 // get fpu context pointers
Note: See TracChangeset
for help on using the changeset viewer.