blob: 21415afe65acaccbeb47e8e336337caa6bcdd577 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
/* ----------------------------------------------------------------------- *
* Not Copyright 2002 H. Peter Anvin
* This file is in the public domain.
* ----------------------------------------------------------------------- */
/*
* com32.h
*
* Common declarations for com32 programs.
*/
#ifndef _COM32_H
#define _COM32_H
/*
* This structure defines the register frame used by the
* system call interface.
*
* The syscall interface is:
*
* __syscall(<interrupt #>, <source regs>, <return regs>)
*/
typedef struct {
unsigned short gs; /* Offset 0 */
unsigned short fs; /* Offset 2 */
unsigned short es; /* Offset 4 */
unsigned short ds; /* Offset 6 */
unsigned int edi; /* Offset 8 */
unsigned int esi; /* Offset 12 */
unsigned int ebp; /* Offset 16 */
unsigned int _unused; /* Offset 20 */
unsigned int ebx; /* Offset 24 */
unsigned int edx; /* Offset 28 */
unsigned int ecx; /* Offset 32 */
unsigned int eax; /* Offset 36 */
unsigned int eflags; /* Offset 40 */
} com32sys_t;
/* The standard prototype for _start() */
int _start(unsigned int __nargs,
char *__cmdline,
void (*__syscall)(unsigned char, com32sys_t *, com32sys_t *),
void *__bounce_ptr,
unsigned int __bounce_len);
#endif /* _COM32_H */
|