Changeset 7d453cf in rtems


Ignore:
Timestamp:
Jul 16, 2008, 9:38:05 PM (11 years ago)
Author:
Till Straumann <strauman@…>
Branches:
4.10, 4.11, 4.9, master
Children:
5166513c
Parents:
c702dd8
Message:

2008-07-16 Till Straumann <strauman@…>

  • shared/include/powerpc-utility.h: Added GET_INTERRUPT_MASK macro.
Location:
c/src/lib/libcpu/powerpc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libcpu/powerpc/ChangeLog

    rc702dd8 r7d453cf  
     12008-07-16      Till Straumann <strauman@slac.stanford.edu>
     2
     3        * shared/include/powerpc-utility.h: Added
     4        GET_INTERRUPT_MASK macro.
     5
    162008-07-16      Joel Sherrill <joel.sherrill@oarcorp.com>
    27
  • c/src/lib/libcpu/powerpc/shared/include/powerpc-utility.h

    rc702dd8 r7d453cf  
    500500
    501501/*
     502 * Obtain interrupt mask
     503 */
     504.macro GET_INTERRUPT_MASK mask
     505        mfspr \mask, sprg0
     506.endm
     507
     508/*
    502509 * Disables all asynchronous exeptions (interrupts) which may cause a context
    503510 * switch.
     
    505512.macro INTERRUPT_DISABLE level, mask
    506513        mfmsr   \level
    507         mfspr   \mask, sprg0
     514        GET_INTERRUPT_MASK mask=\mask
    508515        andc    \mask, \level, \mask
    509516        mtmsr   \mask
Note: See TracChangeset for help on using the changeset viewer.