Changeset 482fa08


Ignore:
Timestamp:
Aug 21, 2020, 9:01:29 AM (14 months ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
arm-eh, jacob/cs343-translation, master, new-ast-unique-expr
Children:
ba70330
Parents:
c5cbc099
Message:

correctly set CFA_REG_IP for ARM 64-bit

File:
1 edited

Legend:

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

    rc5cbc099 r482fa08  
    1010// Created On       : Mon Jun 5 14:20:42 2017
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Wed Jun 17 11:36:25 2020
    13 // Update Count     : 46
     12// Last Modified On : Fri Aug 21 07:54:40 2020
     13// Update Count     : 51
    1414//
    1515
     
    5757#define CFA_REG_IP gregs[REG_RIP]
    5858#elif defined( __ARM_ARCH )
    59 #define CFA_REG_IP arm_pc
     59#define CFA_REG_IP pc
    6060#else
    6161#error unknown hardware architecture
     
    365365        // SKULLDUGGERY: if a thread creates a processor and the immediately deletes it,
    366366        // the interrupt that is supposed to force the kernel thread to preempt might arrive
    367         // before the kernel thread has even started running. When that happens an iterrupt
     367        // before the kernel thread has even started running. When that happens, an interrupt
    368368        // we a null 'this_processor' will be caught, just ignore it.
    369369        if(! kernelTLS.this_processor ) return;
Note: See TracChangeset for help on using the changeset viewer.