Add MAX value definitions to go along with irq_t and irq_mapped_t

This commit is contained in:
Gregory Nutt
2017-03-03 11:48:20 -06:00
parent e1218c4b4b
commit fc5fca5145
2 changed files with 24 additions and 4 deletions
+2 -2
View File
@@ -644,10 +644,10 @@ config ARCH_MINIMAL_VECTORTABLE
This table is index by the hardware IRQ number and provides a value
in the range of 0 to CONFIG_ARCH_NUSER_INTERRUPTS that is the new,
mapped index into the vector table. Unused, unmapped interrupts
should be set to (irq_mapped_t)-1. So, for example, if g_irqmap[37]
should be set to IRQMAPPED_MAX. So, for example, if g_irqmap[37]
== 24, then the hardware interrupt vector 37 will be mapped to the
interrupt vector table at index 24. if g_irqmap[42] ==
(irq_mapped_t)-1, then hardware interrupt vector 42 is not used and
IRQMAPPED_MAX, then hardware interrupt vector 42 is not used and
if it occurs will result in an unexpected interrupt crash.
config ARCH_NUSER_INTERRUPTS