diff options
author | nalin <nalin> | 1999-08-15 03:20:35 +0000 |
---|---|---|
committer | nalin <nalin> | 1999-08-15 03:20:35 +0000 |
commit | e8f87afc4c3a47d18b69b1c07bf1d3c0259ab85e (patch) | |
tree | 103f3cfaa4d073be52937c02188b250682e89820 | |
parent | 39f172f19d4b66ab1ed9c4aa47f41351ced02222 (diff) | |
download | anaconda-e8f87afc4c3a47d18b69b1c07bf1d3c0259ab85e.tar.gz anaconda-e8f87afc4c3a47d18b69b1c07bf1d3c0259ab85e.tar.xz anaconda-e8f87afc4c3a47d18b69b1c07bf1d3c0259ab85e.zip |
Initial revision
-rw-r--r-- | ddcprobe/bioscall.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/ddcprobe/bioscall.h b/ddcprobe/bioscall.h new file mode 100644 index 000000000..0851d0882 --- /dev/null +++ b/ddcprobe/bioscall.h @@ -0,0 +1,23 @@ +#ifndef bioscall_h +#define bioscall_h + +/* Print some of the interesting parts of a vm86_regs structure. */ +void dump_regs(struct vm86_regs *regs); + +/* Call vm86 using the given memory block, stopping if we break at a + given address. */ +void do_vm86(struct vm86_struct *vm, char *memory, unsigned stop_eip); + +/* Memory-map a megabyte at address 0, and copy the kernel's low megabyte + into the memory block, returning the result. */ +unsigned char *vm86_ram_alloc(); +void vm86_ram_free(unsigned char *ram); + +/* Handle everything, using the memory mapped at address 0. The code that makes + the actual code to the bios is stored at segment BIOSCALL_START_SEG, offset + BIOSCALL_START_OFS, so expect that area to be destroyed if you use it. */ +#define BIOSCALL_START_SEG 0x8000 +#define BIOSCALL_START_OFS 0x0000 +void bioscall(unsigned char int_no, struct vm86_regs *regs, unsigned char *mem); + +#endif /* bioscall_h */ |