#include <unistd.h>#include <fcntl.h>#include <stdio.h>#include <sys/mman.h>#include <sys/types.h>#include <string.h>#include <stdlib.h>#include <signal.h>#include <sys/stat.h>#include <setjmp.h>#include <sys/perm.h>#include "v86bios.h"#include "pci.h"#include "AsmMacros.h"#include "vbios.h"Defines | |
| #define | SIZE 0x100000 |
| #define | VRAM_START 0xA0000 |
| #define | VRAM_SIZE 0x1FFFF |
| #define | V_BIOS_SIZE 0x1FFFF |
| #define | BIOS_START 0x7C00 /* default BIOS entry */ |
| #define | BIOS_RAM 0 |
Functions | |
| void | log_err (char *format,...) __attribute__((format(printf |
| int | map (void) |
| void | unmap (void) |
| int | map_vram (void) |
| void | unmap_vram (void) |
| int | copy_vbios (void) |
| int | copy_bios_ram () |
| int | setup_system_bios (void) |
| void | setup_int_vect (void) |
| int | chksum (CARD8 *start) |
| void | loadCodeToMem (unsigned char *ptr, CARD8 *code) |
| void | sigsegv_handler (int) |
| int | InitInt10 () |
| void | FreeInt10 () |
| int | CallInt10 (int *ax, int *bx, int *cx, unsigned char *buf, int len) |
Variables | |
| CARD8 | code [] = { 0xcd, 0x10, 0xf4 } |
| int | vram_mapped = 0 |
| int | int10inited = 0 |
| sigjmp_buf | longjmp_buf |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|