root/morphix/trunk/ddcxinfo/bioscall.h

Revision 2, 0.9 kB (checked in by nextime, 2 years ago)

Initial import, branching from morphix svn

Line 
1 #ifndef bioscall_h
2 #define bioscall_h
3
4 /* Print some of the interesting parts of a vm86_regs structure. */
5 void dump_regs(struct vm86_regs *regs);
6
7 /* Call vm86 using the given memory block, stopping if we break at a
8    given address. */
9 void do_vm86(struct vm86_struct *vm, char *memory, unsigned stop_eip);
10
11 /* Memory-map a megabyte at address 0, and copy the kernel's low megabyte
12    into the memory block, returning the result. */
13 unsigned char *vm86_ram_alloc();
14 void vm86_ram_free(unsigned char *ram);
15
16 /* Handle everything, using the memory mapped at address 0.  The code that makes
17    the actual code to the bios is stored at segment BIOSCALL_START_SEG, offset
18    BIOSCALL_START_OFS, so expect that area to be destroyed if you use it. */
19 #define BIOSCALL_START_SEG 0x8000
20 #define BIOSCALL_START_OFS 0x0000
21 void bioscall(unsigned char int_no, struct vm86_regs *regs, unsigned char *mem);
22
23 #endif /* bioscall_h */
Note: See TracBrowser for help on using the browser.