oprom/realmode/x86.c: Fix building for ENV_X86_64

Not tested on hardware.

Change-Id: I8ce8d56da326aeff5ff9b400ded02d4309372519
Signed-off-by: Arthur Heymans <arthur@aheymans.xyz>
Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/59660
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Nico Huber <nico.h@gmx.de>
This commit is contained in:
Arthur Heymans 2021-11-25 09:39:02 +01:00 committed by Nico Huber
parent e74ebcde38
commit 15c9c78057
1 changed files with 8 additions and 2 deletions

View File

@ -10,6 +10,7 @@
#include <device/pci_ids.h>
#include <pc80/i8259.h>
#include <pc80/i8254.h>
#include <stdint.h>
#include <string.h>
#include <vbe.h>
#include <framebuffer_info.h>
@ -89,14 +90,19 @@ static int intXX_exception_handler(void)
.edi=X86_EDI,
.vector=M.x86.intno,
.error_code=0, // FIXME: fill in
.eip=X86_EIP,
.cs=X86_CS,
#if ENV_X86_64
.rip=X86_EIP,
.rflags=X86_EFLAGS
#else
.eip=X86_EIP,
.eflags=X86_EFLAGS
#endif
};
struct eregs *regs = &reg_info;
printk(BIOS_INFO, "Oops, exception %d while executing option rom\n",
regs->vector);
(uint32_t)regs->vector);
x86_exception(regs); // Call coreboot exception handler
return 0; // Never really returns