Files
lk/platform/lpc43xx/vectab.c
Travis Geiselbrecht cba9e47987 [license] replace the longer full MIT license with a shorter one
Used scripts/replacelic. Everything seems to build fine.
2019-07-05 17:22:23 -07:00

29 lines
707 B
C

/*
* Copyright (c) 2015 Brian Swetland
*
* Use of this source code is governed by a MIT-style
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT
*/
#include <lk/debug.h>
#include <lk/compiler.h>
#include <arch/arm/cm.h>
void lpc43xx_dummy_irq(void) {
arm_cm_irq_entry();
panic("unhandled irq\n");
}
// default handlers are weak aliases to the dummy handler
#define DEFIRQ(x) \
void lpc43xx_##x##_IRQ(void) __WEAK_ALIAS("lpc43xx_dummy_irq");
#include <platform/defirq.h>
#undef DEFIRQ
#define DEFIRQ(x) [x##_IRQn] = lpc43xx_##x##_IRQ,
const void *const __SECTION(".text.boot.vectab2") vectab2[] = {
#include <platform/defirq.h>
};
#undef DEFIRQ