summaryrefslogtreecommitdiffstats
path: root/c/src/exec/score/src/objectgetisr.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2000-07-24 22:28:15 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2000-07-24 22:28:15 +0000
commite001d84afb3b50c9c91f41eda05b78e45382fcff (patch)
tree026d68f5a85f1ab2add8b2d16ef4f77ba006880f /c/src/exec/score/src/objectgetisr.c
parentFixed so autoconf macros will like this file. (diff)
downloadrtems-e001d84afb3b50c9c91f41eda05b78e45382fcff.tar.bz2
Use bitwise and not cast to unsigned16 to remove upper bits.
Diffstat (limited to '')
-rw-r--r--c/src/exec/score/src/objectgetisr.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/c/src/exec/score/src/objectgetisr.c b/c/src/exec/score/src/objectgetisr.c
index ea63469e12..9d0951d9fd 100644
--- a/c/src/exec/score/src/objectgetisr.c
+++ b/c/src/exec/score/src/objectgetisr.c
@@ -58,7 +58,9 @@ Objects_Control *_Objects_Get_isr_disable(
ISR_Level level;
/* index = _Objects_Get_index( id ); */
- index = (unsigned16) id;
+ index = id & 0x0000ffff;
+ /* This should work but doesn't always :( */
+ /* index = (unsigned16) id; */
_ISR_Disable( level );
if ( information->maximum >= index ) {