diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2000-07-24 22:28:15 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2000-07-24 22:28:15 +0000 |
commit | e001d84afb3b50c9c91f41eda05b78e45382fcff (patch) | |
tree | 026d68f5a85f1ab2add8b2d16ef4f77ba006880f /c/src/exec/score/src/objectgetisr.c | |
parent | Fixed so autoconf macros will like this file. (diff) | |
download | rtems-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.c | 4 |
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 ) { |