summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libcpu/mips/shared
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--c/src/lib/libcpu/mips/shared/interrupts/Makefile.am6
-rw-r--r--c/src/lib/libcpu/mips/shared/interrupts/maxvectors.c4
2 files changed, 8 insertions, 2 deletions
diff --git a/c/src/lib/libcpu/mips/shared/interrupts/Makefile.am b/c/src/lib/libcpu/mips/shared/interrupts/Makefile.am
index 434f2a38ec..5c9eecf8a8 100644
--- a/c/src/lib/libcpu/mips/shared/interrupts/Makefile.am
+++ b/c/src/lib/libcpu/mips/shared/interrupts/Makefile.am
@@ -20,6 +20,12 @@ include $(top_srcdir)/../../../../../automake/lib.am
# (OPTIONAL) Add local stuff here using +=
#
+if tx39
+EXTRA_FLAGS = -DTX39
+endif
+
+AM_CPPFLAGS += $(EXTRA_FLAGS)
+
$(PGM): $(interrupts_rel_OBJECTS)
$(make-rel)
diff --git a/c/src/lib/libcpu/mips/shared/interrupts/maxvectors.c b/c/src/lib/libcpu/mips/shared/interrupts/maxvectors.c
index c1e5df20a4..730a1898f2 100644
--- a/c/src/lib/libcpu/mips/shared/interrupts/maxvectors.c
+++ b/c/src/lib/libcpu/mips/shared/interrupts/maxvectors.c
@@ -18,11 +18,11 @@
* controller so that these four bits map to 16 unique interrupts.
* So you have: 2 software interrupts, an NMI, and 16 others.
*/
-#if defined(tx3904)
+#if defined(TX39)
#define MAX_VECTORS 19
#endif
-#ifndef MAX
+#ifndef MAX_VECTORS
#define MAX_VECTORS 8
#endif