3 * execute BIOS int 10h calls in x86 real mode environment
4 * Copyright 1999 Egbert Eich
6 #ifdef HAVE_XORG_CONFIG_H
7 #include <xorg-config.h>
13 #include "xf86_OSproc.h"
15 #define _INT10_PRIVATE
16 #include "xf86int10.h"
17 #include "int10Defines.h"
22 x86emu_do_int(int num
)
24 Int10Current
->num
= num
;
26 if (!int_handler(Int10Current
)) {
32 xf86ExecX86int10(xf86Int10InfoPtr pInt
)
34 int sig
= setup_int(pInt
);
39 if (int_handler(pInt
)) {
43 finish_int(pInt
, sig
);
47 xf86Int10ExecSetup(xf86Int10InfoPtr pInt
)
50 X86EMU_intrFuncs intFuncs
[256];
52 X86EMU_pioFuncs pioFuncs
= {
61 X86EMU_memFuncs memFuncs
= {
70 X86EMU_setupMemFuncs(&memFuncs
);
74 M
.mem_size
= 1024 * 1024 + 1024;
75 X86EMU_setupPioFuncs(&pioFuncs
);
77 for (i
= 0; i
< 256; i
++)
78 intFuncs
[i
] = x86emu_do_int
;
79 X86EMU_setupIntrFuncs(intFuncs
);
84 printk(const char *fmt
, ...)
88 va_start(argptr
, fmt
);