projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a5989c4
)
Fixed off-by-one errors in lib_m68k/interrupts.c
author
Graeme Russ
<graeme.russ@gmail.com>
Mon, 8 Dec 2008 09:04:51 +0000
(20:04 +1100)
committer
Wolfgang Denk
<wd@denx.de>
Sat, 24 Jan 2009 00:19:23 +0000
(
01:19
+0100)
Signed-off-by: Graeme Russ <graeme.russ@gmail.com>
lib_m68k/interrupts.c
patch
|
blob
|
history
diff --git
a/lib_m68k/interrupts.c
b/lib_m68k/interrupts.c
index 2dc079beea705ed52cc793bfd8103748fb12190a..133494f6dcc3268ed8e62d1924570cefbf656e9c 100644
(file)
--- a/
lib_m68k/interrupts.c
+++ b/
lib_m68k/interrupts.c
@@
-61,7
+61,7
@@
static __inline__ void set_sr (unsigned short sr)
*/
void irq_install_handler (int vec, interrupt_handler_t * handler, void *arg)
{
- if ((vec < 0) || (vec > NR_IRQS)) {
+ if ((vec < 0) || (vec >
=
NR_IRQS)) {
printf ("irq_install_handler: wrong interrupt vector %d\n",
vec);
return;
@@
-73,7
+73,7
@@
void irq_install_handler (int vec, interrupt_handler_t * handler, void *arg)
void irq_free_handler (int vec)
{
- if ((vec < 0) || (vec > NR_IRQS)) {
+ if ((vec < 0) || (vec >
=
NR_IRQS)) {
return;
}