2 Linux Real Mode Interface - A library of DPMI-like functions for Linux.
4 Copyright (C) 1998 by Josh Vanderhoof
6 You are free to distribute and modify this file, as long as you
7 do not remove this copyright notice and clearly label modified
8 versions as being modified.
10 This software has NO WARRANTY. Use it at your own risk.
11 Original location: http://cvs.debian.org/lrmi/
22 unsigned int reserved
;
27 unsigned short int flags
;
28 unsigned short int es
;
29 unsigned short int ds
;
30 unsigned short int fs
;
31 unsigned short int gs
;
32 unsigned short int ip
;
33 unsigned short int cs
;
34 unsigned short int sp
;
35 unsigned short int ss
;
40 #define LRMI_PREFIX LRMI_
43 #define LRMI_CONCAT2(a, b) a ## b
44 #define LRMI_CONCAT(a, b) LRMI_CONCAT2(a, b)
45 #define LRMI_MAKENAME(a) LRMI_CONCAT(LRMI_PREFIX, a)
49 returns 1 if sucessful, 0 for failure
51 #define LRMI_init LRMI_MAKENAME(init)
56 Simulate a 16 bit far call
57 returns 1 if sucessful, 0 for failure
59 #define LRMI_call LRMI_MAKENAME(call)
61 LRMI_call(struct LRMI_regs
*r
);
64 Simulate a 16 bit interrupt
65 returns 1 if sucessful, 0 for failure
67 #define LRMI_int LRMI_MAKENAME(int)
69 LRMI_int(int interrupt
, struct LRMI_regs
*r
);
72 Allocate real mode memory
73 The returned block is paragraph (16 byte) aligned
75 #define LRMI_alloc_real LRMI_MAKENAME(alloc_real)
77 LRMI_alloc_real(int size
);
82 #define LRMI_free_real LRMI_MAKENAME(free_real)
84 LRMI_free_real(void *m
);