projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
common: Move interrupt functions into a new header
[oweals/u-boot.git]
/
arch
/
x86
/
cpu
/
i386
/
interrupt.c
diff --git
a/arch/x86/cpu/i386/interrupt.c
b/arch/x86/cpu/i386/interrupt.c
index 1ea415b876df9fbd6c065d85dffb5d9159796854..78aa51a3ea6adb2b5b2ec7617a234df42feff949 100644
(file)
--- a/
arch/x86/cpu/i386/interrupt.c
+++ b/
arch/x86/cpu/i386/interrupt.c
@@
-12,6
+12,8
@@
#include <common.h>
#include <dm.h>
#include <common.h>
#include <dm.h>
+#include <efi_loader.h>
+#include <irq_func.h>
#include <asm/control_regs.h>
#include <asm/i8259.h>
#include <asm/interrupt.h>
#include <asm/control_regs.h>
#include <asm/i8259.h>
#include <asm/interrupt.h>
@@
-37,7
+39,7
@@
static char *exceptions[] = {
"Overflow",
"BOUND Range Exceeded",
"Invalid Opcode (Undefined Opcode)",
"Overflow",
"BOUND Range Exceeded",
"Invalid Opcode (Undefined Opcode)",
- "Device Not Avaiable (No Math Coprocessor)",
+ "Device Not Avai
l
able (No Math Coprocessor)",
"Double Fault",
"Coprocessor Segment Overrun",
"Invalid TSS",
"Double Fault",
"Coprocessor Segment Overrun",
"Invalid TSS",
@@
-64,6
+66,18
@@
static char *exceptions[] = {
"Reserved"
};
"Reserved"
};
+/**
+ * show_efi_loaded_images() - show loaded UEFI images
+ *
+ * List all loaded UEFI images.
+ *
+ * @eip: instruction pointer
+ */
+static void show_efi_loaded_images(uintptr_t eip)
+{
+ efi_print_image_infos((void *)eip);
+}
+
static void dump_regs(struct irq_regs *regs)
{
unsigned long cs, eip, eflags;
static void dump_regs(struct irq_regs *regs)
{
unsigned long cs, eip, eflags;
@@
-144,6
+158,7
@@
static void dump_regs(struct irq_regs *regs)
printf("0x%8.8lx : 0x%8.8lx\n", sp, (ulong)readl(sp));
sp -= 4;
}
printf("0x%8.8lx : 0x%8.8lx\n", sp, (ulong)readl(sp));
sp -= 4;
}
+ show_efi_loaded_images(eip);
}
static void do_exception(struct irq_regs *regs)
}
static void do_exception(struct irq_regs *regs)