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

* score/cpu/powerpc/rtems/new-exceptions/cpu.h:
	use ppc_interrupt_get_disable_mask() to determine
	which bits to set/clear from _CPU_ISR_Set_level().
This commit is contained in:
Till Straumann
2008-07-16 21:52:04 +00:00
parent 441c930dc1
commit 3d28361d19
2 changed files with 8 additions and 2 deletions

View File

@@ -1,3 +1,9 @@
2008-07-16 Till Straumann <strauman@slac.stanford.edu>
* score/cpu/powerpc/rtems/new-exceptions/cpu.h:
use ppc_interrupt_get_disable_mask() to determine
which bits to set/clear from _CPU_ISR_Set_level().
2008-07-16 Till Straumann <strauman@slac.stanford.edu> 2008-07-16 Till Straumann <strauman@slac.stanford.edu>
* score/cpu/powerpc/rtems/powerpc/registers.h: * score/cpu/powerpc/rtems/powerpc/registers.h:

View File

@@ -285,10 +285,10 @@ static inline void _CPU_ISR_Set_level( uint32_t level )
register unsigned int msr; register unsigned int msr;
_CPU_MSR_GET(msr); _CPU_MSR_GET(msr);
if (!(level & CPU_MODES_INTERRUPT_MASK)) { if (!(level & CPU_MODES_INTERRUPT_MASK)) {
msr |= MSR_EE; msr |= ppc_interrupt_get_disable_mask();
} }
else { else {
msr &= ~MSR_EE; msr &= ~ppc_interrupt_get_disable_mask();
} }
_CPU_MSR_SET(msr); _CPU_MSR_SET(msr);
} }