Changes in / [cc344be:281806b]


Ignore:
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • configure

    rcc344be r281806b  
    678678CFA_INCDIR
    679679CFA_PREFIX
    680 DOendif
    681 DOifskipcompile
    682680BUILD_CONCURRENCY_FALSE
    683681BUILD_CONCURRENCY_TRUE
     
    33443342
    33453343
    3346 DOifskipcompile='ifeq ($(skipcompile),yes)
    3347 else'
    3348 
    3349 
    3350 
    3351 DOendif='endif'
    3352 
    3353 
    3354 
    33553344if test "x$prefix" = "xNONE"; then
    33563345        cfa_prefix=${ac_default_prefix}
  • configure.ac

    rcc344be r281806b  
    130130AM_CONDITIONAL([BUILD_NO_LIB], [test "x$build_release$build_debug" = "xnono"])
    131131AM_CONDITIONAL([BUILD_CONCURRENCY], [test "x$build_threading" = "xyes"])
    132 
    133 DOifskipcompile='ifeq ($(skipcompile),yes)
    134 else'
    135 AC_SUBST([DOifskipcompile])
    136 AM_SUBST_NOTMAKE([DOifskipcompile])
    137 
    138 DOendif='endif'
    139 AC_SUBST([DOendif])
    140 AM_SUBST_NOTMAKE([DOendif])
    141132
    142133if test "x$prefix" = "xNONE"; then
  • src/benchmark/Makefile.am

    rcc344be r281806b  
    2323STATS    = ${TOOLSDIR}stat.py
    2424repeats  = 30
    25 skipcompile = no
    2625TIME_FORMAT = "%E"
    2726PRINT_FORMAT = %20s: #Comments needed for spacing
     
    4443%.runquiet :
    4544        @+make $(basename $@)
    46         @taskset -c 1 ./a.out
     45        @./a.out
    4746        @rm -f a.out
    4847
     
    6059        @echo -e '\t"githash": "'${githash}'",'
    6160        @echo -e '\t"arch": "'   ${arch}   '",'
    62 @DOifskipcompile@
    6361        @echo -e '\t"compile": {'
    6462        @+make compile TIME_FORMAT='%e,' PRINT_FORMAT='\t\t\"%s\" :'
    6563        @echo -e '\t\t"dummy" : {}'
    6664        @echo -e '\t},'
    67 @DOendif@
    6865        @echo -e '\t"ctxswitch": {'
    6966        @echo -en '\t\t"coroutine":'
  • src/benchmark/Makefile.in

    rcc344be r281806b  
    253253STATS = ${TOOLSDIR}stat.py
    254254repeats = 30
    255 skipcompile = no
    256255TIME_FORMAT = "%E"
    257256PRINT_FORMAT = %20s: #Comments needed for spacing
     
    460459%.runquiet :
    461460        @+make $(basename $@)
    462         @taskset -c 1 ./a.out
     461        @./a.out
    463462        @rm -f a.out
    464463
     
    474473        @echo -e '\t"githash": "'${githash}'",'
    475474        @echo -e '\t"arch": "'   ${arch}   '",'
    476 @DOifskipcompile@
    477475        @echo -e '\t"compile": {'
    478476        @+make compile TIME_FORMAT='%e,' PRINT_FORMAT='\t\t\"%s\" :'
    479477        @echo -e '\t\t"dummy" : {}'
    480478        @echo -e '\t},'
    481 @DOendif@
    482479        @echo -e '\t"ctxswitch": {'
    483480        @echo -en '\t\t"coroutine":'
  • src/libcfa/concurrency/preemption.c

    rcc344be r281806b  
    4949// Machine specific register name
    5050#if   defined(__x86_64__)
    51 #define CFA_REG_IP gregs[REG_RIP]
     51#define CFA_REG_IP REG_RIP
    5252#elif defined(__i386__)
    53 #define CFA_REG_IP gregs[REG_EIP]
     53#define CFA_REG_IP REG_EIP
    5454#elif defined(__ARM_ARCH__)
    55 #define CFA_REG_IP arm_pc
     55#define CFA_REG_IP REG_R15
    5656#endif
    5757
     
    284284// Receives SIGUSR1 signal and causes the current thread to yield
    285285void sigHandler_ctxSwitch( __CFA_SIGPARMS__ ) {
    286         __cfaabi_dbg_debug_do( last_interrupt = (void *)(cxt->uc_mcontext.CFA_REG_IP); )
    287 
    288         // Check if it is safe to preempt here
     286#if defined( __ARM_ARCH )
     287        __cfaabi_dbg_debug_do( last_interrupt = (void *)(cxt->uc_mcontext.arm_pc); )
     288#else
     289        __cfaabi_dbg_debug_do( last_interrupt = (void *)(cxt->uc_mcontext.gregs[CFA_REG_IP]); )
     290#endif
     291
     292                // Check if it is safe to preempt here
    289293        if( !preemption_ready() ) { return; }
    290294
Note: See TracChangeset for help on using the changeset viewer.