rayzor

view src/dpmi.h @ 1:a826bf0fb169

fixed line endings
author John Tsiombikas <nuclear@member.fsf.org>
date Sat, 05 Apr 2014 09:05:26 +0300
parents
children
line source
1 #ifndef DPMI_H_
2 #define DPMI_H_
4 #include "inttypes.h"
6 struct dpmi_real_regs {
7 uint32_t edi, esi, ebp;
8 uint32_t reserved;
9 uint32_t ebx, edx, ecx, eax;
10 uint16_t flags;
11 uint16_t es, ds, fs, gs;
12 uint16_t ip, cs, sp, ss;
13 };
15 unsigned short dpmi_alloc(unsigned int par);
16 #pragma aux dpmi_alloc = \
17 "mov eax, 0x100" \
18 "int 0x31" \
19 value[ax] parm[ebx];
21 void dpmi_real_int(int inum, struct dpmi_real_regs *regs);
23 void *dpmi_mmap(uint32_t phys_addr, unsigned int size);
24 void dpmi_munmap(void *addr);
26 #endif /* DPMI_H_ */