Changeset 258e6ad5


Ignore:
Timestamp:
Jan 23, 2018, 6:04:34 PM (4 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
aaron-thesis, arm-eh, cleanup-dtors, deferred_resn, demangler, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, resolv-new, with_gc
Children:
ccbf683
Parents:
b6838214
Message:

fix ARM context-switch build

File:
1 edited

Legend:

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

    rb6838214 r258e6ad5  
    1010// Created On       : Mon Jun 5 14:20:42 2017
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Tue Jan 23 13:56:32 2018
    13 // Update Count     : 6
     12// Last Modified On : Tue Jan 23 17:59:30 2018
     13// Update Count     : 7
    1414//
    1515
     
    299299// Receives SIGUSR1 signal and causes the current thread to yield
    300300void sigHandler_ctxSwitch( __CFA_SIGPARMS__ ) {
     301#if defined( __ARM_ARCH )
    301302        __cfaabi_dbg_debug_do( last_interrupt = (void *)(cxt->uc_mcontext.arm_pc); )
    302 
    303         // Check if it is safe to preempt here
     303#else
     304        __cfaabi_dbg_debug_do( last_interrupt = (void *)(cxt->uc_mcontext.gregs[CFA_REG_IP]); )
     305#endif
     306
     307                // Check if it is safe to preempt here
    304308        if( !preemption_ready() ) { return; }
    305309
Note: See TracChangeset for help on using the changeset viewer.