projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add 16bit colour support in lcd.h
[oweals/u-boot.git]
/
lib_m68k
/
interrupts.c
diff --git
a/lib_m68k/interrupts.c
b/lib_m68k/interrupts.c
index 1635d6fed5ec6e406580d7d3114f63936e451101..133494f6dcc3268ed8e62d1924570cefbf656e9c 100644
(file)
--- a/
lib_m68k/interrupts.c
+++ b/
lib_m68k/interrupts.c
@@
-29,7
+29,7
@@
#include <asm/processor.h>
#include <asm/immap.h>
#include <asm/processor.h>
#include <asm/immap.h>
-#define NR_IRQS (C
FG
_NUM_IRQS)
+#define NR_IRQS (C
ONFIG_SYS
_NUM_IRQS)
/*
* Interrupt vector functions.
/*
* Interrupt vector functions.
@@
-61,7
+61,7
@@
static __inline__ void set_sr (unsigned short sr)
*/
void irq_install_handler (int vec, interrupt_handler_t * handler, void *arg)
{
*/
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;
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)
{
void irq_free_handler (int vec)
{
- if ((vec < 0) || (vec > NR_IRQS)) {
+ if ((vec < 0) || (vec >
=
NR_IRQS)) {
return;
}
return;
}