Ignore:
Timestamp:
Mar 1, 2026, 5:47:54 PM (42 hours ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
master
Children:
02e7483
Parents:
8086004
Message:

add routines stack_verify and stack_pointer, in debug mode call stack_verify on front-side of context switch and time-slicing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/concurrency/preemption.cfa

    r8086004 r0957f62  
    1010// Created On       : Mon Jun 5 14:20:42 2017
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Fri Apr 25 07:24:39 2025
    13 // Update Count     : 63
     12// Last Modified On : Sun Mar  1 10:00:18 2026
     13// Update Count     : 68
    1414//
    1515
     
    571571        __cfaabi_dbg_print_buffer_decl( " KERNEL: preempting core %p (%p @ %p).\n", __cfaabi_tls.this_processor, __cfaabi_tls.this_thread, (void *)(cxt->uc_mcontext.CFA_REG_IP) );
    572572
     573        #if defined( __CFA_DEBUG__ )
     574        stack_verify();                                                                         // good place to check for stack overflow
     575        #endif // __CFA_DEBUG__
     576
    573577        // Sync flag : prevent recursive calls to the signal handler
    574578        __cfaabi_tls.preemption_state.in_progress = true;
     
    591595        #endif
    592596
    593         force_yield( __ALARM_PREEMPTION ); // Do the actual __cfactx_switch
     597        force_yield( __ALARM_PREEMPTION );                                      // Do the actual __cfactx_switch
    594598}
    595599
Note: See TracChangeset for help on using the changeset viewer.