2008-07-16 Till Straumann <strauman@slac.stanford.edu>

* score/cpu/powerpc/rtems/powerpc/registers.h:
	added ppc_interrupt_get_disable_mask() inline function.
This commit is contained in:
Till Straumann
2008-07-16 21:47:04 +00:00
parent 5166513cf5
commit 441c930dc1
2 changed files with 15 additions and 0 deletions
+5
View File
@@ -1,3 +1,8 @@
2008-07-16 Till Straumann <strauman@slac.stanford.edu>
* score/cpu/powerpc/rtems/powerpc/registers.h:
added ppc_interrupt_get_disable_mask() inline function.
2008-07-16 Joel Sherrill <joel.sherrill@oarcorp.com>
* libmisc/shell/shellconfig.h, libmisc/stackchk/stackchk.h: Fix typos.
@@ -345,6 +345,16 @@ static inline void ppc_interrupt_set_disable_mask( uint32_t mask)
);
}
static inline uint32_t ppc_interrupt_get_disable_mask()
{
uint32_t mask;
asm volatile (
"mfspr %0,272"
: "=r" (mask)
);
return mask;
}
static inline uint32_t ppc_interrupt_disable()
{
uint32_t level;