From 05082737a9507a8bbb238d9d439f74a72a7606e8 Mon Sep 17 00:00:00 2001 From: Stefan Reinauer Date: Wed, 21 Oct 2015 13:00:41 -0700 Subject: Redo testbios utility to use all of YABEL Drop buggy duplicate implementation of intXX handlers and provide enough glue to use all of YABEL. Change-Id: I2db77a56a2a991cb84876456dcbb3a843a0d9754 Signed-off-by: Stefan Reinauer Reviewed-on: https://review.coreboot.org/12117 Reviewed-by: Ronald G. Minnich Tested-by: build bot (Jenkins) --- util/vgabios/testbios.h | 62 +++++++++++-------------------------------------- 1 file changed, 13 insertions(+), 49 deletions(-) (limited to 'util/vgabios/testbios.h') diff --git a/util/vgabios/testbios.h b/util/vgabios/testbios.h index a5a8b0d6b2..a028bf0fa1 100644 --- a/util/vgabios/testbios.h +++ b/util/vgabios/testbios.h @@ -1,19 +1,21 @@ -/* Derived from: - * XFree86 int10 module - * execute BIOS int 10h calls in x86 real mode environment - * Copyright 1999 Egbert Eich +/* + * This file is part of the coreboot project. + * + * Copyright 1999 Egbert Eich + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 2 of the License. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. */ #ifndef __TESTBIOS_H__ #define __TESTBIOS_H__ -void x86emu_dump_xregs(void); -int int15_handler(void); -int int16_handler(void); -int int1A_handler(void); -int int42_handler(void); -int intE6_handler(void); - #include #include @@ -57,42 +59,4 @@ int intE6_handler(void); #define X86_CH M.x86.R_CH #define X86_DH M.x86.R_DH - -/* int10 info structure */ -typedef struct { - u16 BIOSseg; - u16 inb40time; - struct _mem *mem; - int num; - int ax; - int bx; - int cx; - int dx; - int si; - int di; - int es; - int bp; - int flags; - int stackseg; -} _ptr, *ptr; - -typedef struct _mem { - u8(*rb) (ptr, int); - u16(*rw) (ptr, int); - u32(*rl) (ptr, int); - void (*wb) (ptr, int, u8); - void (*ww) (ptr, int, u16); - void (*wl) (ptr, int, u32); -} mem; - -#define MEM_WB(where, what) wrb(where,what) -#define MEM_WW(where, what) wrw(where, what) -#define MEM_WL(where, what) wrl(where, what) - -#define MEM_RB(where) rdb(where) -#define MEM_RW(where) rdw(where) -#define MEM_RL(where) rdl(where) - -extern ptr current; - #endif -- cgit v1.2.3