Changeset e626c60 in rtems


Ignore:
Timestamp:
Dec 6, 2013, 5:14:57 PM (6 years ago)
Author:
Chirayu Desai <cdesai@…>
Branches:
4.11, master
Children:
c6af4585
Parents:
03130cd0
git-author:
Chirayu Desai <cdesai@…> (12/06/13 17:14:57)
git-committer:
Gedare Bloom <gedare@…> (12/06/13 18:26:58)
Message:

libcpu/powerpc/mpc5xx: use THREAD_DISABLE_DISPATCH_LEVEL in asm

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libcpu/powerpc/mpc5xx/irq/irq_asm.S

    r03130cd0 re626c60  
    111111
    112112        /*
    113          * store part of _Thread_Dispatch_disable_level address in R15
    114          */
    115         addis r15, 0, _Thread_Dispatch_disable_level@ha
     113         * store part of THREAD_DISPATCH_DISABLE_LEVEL address in R15
     114         */
     115        addis r15, 0, THREAD_DISPATCH_DISABLE_LEVEL@ha
    116116
    117117        /*
     
    136136
    137137        /*
    138          * Start Incrementing _Thread_Dispatch_disable_level R4 = _Thread_Dispatch_disable_level
    139          */
    140         lwz     r6, _Thread_Dispatch_disable_level@l(r15)
     138         * Start Incrementing THREAD_DISPATCH_DISABLE_LEVEL R4 = THREAD_DISPATCH_DISABLE_LEVEL
     139         */
     140        lwz     r6, THREAD_DISPATCH_DISABLE_LEVEL@l(r15)
    141141
    142142        /* store new nesting level in _ISR_Nest_level */
     
    146146
    147147        /*
    148          * store new _Thread_Dispatch_disable_level value
    149          */
    150         stw     r6, _Thread_Dispatch_disable_level@l(r15)
     148         * store new THREAD_DISPATCH_DISABLE_LEVEL value
     149         */
     150        stw     r6, THREAD_DISPATCH_DISABLE_LEVEL@l(r15)
    151151
    152152        /*
     
    168168         * start decrementing nesting level. Note : do not test result against 0
    169169         * value as an easy exit condition because if interrupt nesting level > 1
    170          * then _Thread_Dispatch_disable_level > 1
     170         * then THREAD_DISPATCH_DISABLE_LEVEL > 1
    171171         */
    172172        lis             r7, ISR_NEST_LEVEL@ha
     
    174174
    175175        /*
    176          * start decrementing _Thread_Dispatch_disable_level
    177          */
    178         lwz     r3,_Thread_Dispatch_disable_level@l(r15)
     176         * start decrementing THREAD_DISPATCH_DISABLE_LEVEL
     177         */
     178        lwz     r3,THREAD_DISPATCH_DISABLE_LEVEL@l(r15)
    179179
    180180        addi    r4, r4, -1      /* Continue decrementing nesting level */
    181         addi    r3, r3, -1      /* Continue decrementing _Thread_Dispatch_disable_level */
     181        addi    r3, r3, -1      /* Continue decrementing THREAD_DISPATCH_DISABLE_LEVEL */
    182182
    183183        stw     r4, ISR_NEST_LEVEL@l(r7) /* End decrementing nesting level */
    184         stw     r3,_Thread_Dispatch_disable_level@l(r15) /* End decrementing _Thread_Dispatch_disable_level */
     184        stw     r3,THREAD_DISPATCH_DISABLE_LEVEL@l(r15) /* End decrementing THREAD_DISPATCH_DISABLE_LEVEL */
    185185
    186186        cmpwi   r3, 0
     
    191191         */
    192192        addi    r1, r14, 0
    193         bne     easy_exit /* if (_Thread_Dispatch_disable_level != 0) goto easy_exit */
     193        bne     easy_exit /* if (THREAD_DISPATCH_DISABLE_LEVEL != 0) goto easy_exit */
    194194
    195195        /*
    196196         * Here we are running again on the thread system stack.
    197          * We have interrupt nesting level = _Thread_Dispatch_disable_level = 0.
     197         * We have interrupt nesting level = THREAD_DISPATCH_DISABLE_LEVEL = 0.
    198198         * Interrupt are still disabled. Time to check if scheduler request to
    199199         * do something with the current thread...
Note: See TracChangeset for help on using the changeset viewer.