summaryrefslogtreecommitdiffstats
path: root/cpukit/score/cpu/sparc/cpu.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2008-02-20 21:54:28 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2008-02-20 21:54:28 +0000
commit49cff0fc2702aab1eab73eaba4e1501090300a27 (patch)
tree0fea48e5d70e41066833548e0cf2bbb92413b850 /cpukit/score/cpu/sparc/cpu.c
parent2008-02-19 Ralf Corsépius <ralf.corsepius@rtems.org> (diff)
downloadrtems-49cff0fc2702aab1eab73eaba4e1501090300a27.tar.bz2
2008-02-20 Alexandru Bugnar <a-bugnar@criticalsoftware.com>
PR 1278/cpukit * cpu.c: Fix incorrect bit manipulation on returning old address of raw trap handler.
Diffstat (limited to 'cpukit/score/cpu/sparc/cpu.c')
-rw-r--r--cpukit/score/cpu/sparc/cpu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/score/cpu/sparc/cpu.c b/cpukit/score/cpu/sparc/cpu.c
index 64b72056d0..3124e1a8ec 100644
--- a/cpukit/score/cpu/sparc/cpu.c
+++ b/cpukit/score/cpu/sparc/cpu.c
@@ -174,7 +174,7 @@ void _CPU_ISR_install_raw_handler(
if ( slot->mov_psr_l0 == _CPU_Trap_slot_template.mov_psr_l0 ) {
u32_handler =
- ((slot->sethi_of_handler_to_l4 & HIGH_BITS_MASK) << HIGH_BITS_SHIFT) |
+ (slot->sethi_of_handler_to_l4 << HIGH_BITS_SHIFT) |
(slot->jmp_to_low_of_handler_plus_l4 & LOW_BITS_MASK);
*old_handler = (proc_ptr) u32_handler;
} else