From ea92185755a578d9a1b5df5cbf7b05ee2cea2390 Mon Sep 17 00:00:00 2001 From: Maciej Pijanka Date: Tue, 27 Oct 2009 14:29:29 +0000 Subject: Add few missing prototypes, and remove few unused (thus lonelly) variables. TODO - x86emu need (imo) some common header with prototypes at least - clog2, ulzma, hardwaremain prototypes added by this patch probably should be moved to some header too. - in src/devices/device_util.c prototype is before function because seems, it is used only within same file, if not it should be moved to debug section of prototypes in include/device/device.h Signed-off-by: Maciej Pijanka Acked-by: Myles Watson git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4871 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- util/x86emu/x86.c | 3 +-- util/x86emu/x86_interrupts.c | 4 ++++ 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'util/x86emu') diff --git a/util/x86emu/x86.c b/util/x86emu/x86.c index af8bb1c8b2..9f373e79dd 100644 --- a/util/x86emu/x86.c +++ b/util/x86emu/x86.c @@ -36,6 +36,7 @@ struct realmode_idt { }; void x86_exception(struct eregs *info); +void run_bios(struct device *dev, unsigned long addr); extern unsigned char __idt_handler, __idt_handler_size; extern unsigned char __realmode_code, __realmode_code_size; @@ -124,8 +125,6 @@ static void setup_realmode_idt(void) void run_bios(struct device *dev, unsigned long addr) { - int i; - /* clear vga bios data area */ memset(0x400, 0, 0x200); diff --git a/util/x86emu/x86_interrupts.c b/util/x86emu/x86_interrupts.c index 556e81043a..73bfe51099 100644 --- a/util/x86emu/x86_interrupts.c +++ b/util/x86emu/x86_interrupts.c @@ -51,6 +51,10 @@ enum { PCIBIOS_BADREG = 0x8700 }; +int int12_handler(struct eregs *regs); +int int1a_handler(struct eregs *regs); +int int15_handler(struct eregs *regs); + int int12_handler(struct eregs *regs) { regs->eax = 64 * 1024; -- cgit v1.2.3