forked from Imagelibrary/rtems
2008-07-16 Till Straumann <strauman@slac.stanford.edu>
* shared/include/powerpc-utility.h: Added GET_INTERRUPT_MASK macro.
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
2008-07-16 Till Straumann <strauman@slac.stanford.edu>
|
||||||
|
|
||||||
|
* shared/include/powerpc-utility.h: Added
|
||||||
|
GET_INTERRUPT_MASK macro.
|
||||||
|
|
||||||
2008-07-16 Joel Sherrill <joel.sherrill@oarcorp.com>
|
2008-07-16 Joel Sherrill <joel.sherrill@oarcorp.com>
|
||||||
|
|
||||||
* mpc6xx/clock/c_clock.c: Add fast idle.
|
* mpc6xx/clock/c_clock.c: Add fast idle.
|
||||||
|
|||||||
@@ -498,13 +498,20 @@ static inline void ppc_set_time_base_64( uint64_t val)
|
|||||||
\name:
|
\name:
|
||||||
.endm
|
.endm
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Obtain interrupt mask
|
||||||
|
*/
|
||||||
|
.macro GET_INTERRUPT_MASK mask
|
||||||
|
mfspr \mask, sprg0
|
||||||
|
.endm
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Disables all asynchronous exeptions (interrupts) which may cause a context
|
* Disables all asynchronous exeptions (interrupts) which may cause a context
|
||||||
* switch.
|
* switch.
|
||||||
*/
|
*/
|
||||||
.macro INTERRUPT_DISABLE level, mask
|
.macro INTERRUPT_DISABLE level, mask
|
||||||
mfmsr \level
|
mfmsr \level
|
||||||
mfspr \mask, sprg0
|
GET_INTERRUPT_MASK mask=\mask
|
||||||
andc \mask, \level, \mask
|
andc \mask, \level, \mask
|
||||||
mtmsr \mask
|
mtmsr \mask
|
||||||
.endm
|
.endm
|
||||||
|
|||||||
Reference in New Issue
Block a user