summaryrefslogtreecommitdiffstats
path: root/cpukit/score/cpu/powerpc/rtems/new-exceptions/cpu.h
diff options
context:
space:
mode:
authorTill Straumann <strauman@slac.stanford.edu>2008-07-16 21:52:04 +0000
committerTill Straumann <strauman@slac.stanford.edu>2008-07-16 21:52:04 +0000
commit3d28361d19a2538bdb39c1e09d56d094a8621a51 (patch)
treeb0ee629b416aeb3085fb9877c0738b5cf8160842 /cpukit/score/cpu/powerpc/rtems/new-exceptions/cpu.h
parent2008-07-16 Till Straumann <strauman@slac.stanford.edu> (diff)
downloadrtems-3d28361d19a2538bdb39c1e09d56d094a8621a51.tar.bz2
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().
Diffstat (limited to 'cpukit/score/cpu/powerpc/rtems/new-exceptions/cpu.h')
-rw-r--r--cpukit/score/cpu/powerpc/rtems/new-exceptions/cpu.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpukit/score/cpu/powerpc/rtems/new-exceptions/cpu.h b/cpukit/score/cpu/powerpc/rtems/new-exceptions/cpu.h
index 8316237207..245b6b7eec 100644
--- a/cpukit/score/cpu/powerpc/rtems/new-exceptions/cpu.h
+++ b/cpukit/score/cpu/powerpc/rtems/new-exceptions/cpu.h
@@ -285,10 +285,10 @@ static inline void _CPU_ISR_Set_level( uint32_t level )
register unsigned int msr;
_CPU_MSR_GET(msr);
if (!(level & CPU_MODES_INTERRUPT_MASK)) {
- msr |= MSR_EE;
+ msr |= ppc_interrupt_get_disable_mask();
}
else {
- msr &= ~MSR_EE;
+ msr &= ~ppc_interrupt_get_disable_mask();
}
_CPU_MSR_SET(msr);
}