[NTVDM]
[reactos.git] / subsystems / ntvdm / int32.h
1 /*
2 * COPYRIGHT: GPL - See COPYING in the top level directory
3 * PROJECT: ReactOS Virtual DOS Machine
4 * FILE: int32.h
5 * PURPOSE: 32-bit Interrupt Handlers
6 * PROGRAMMERS: Aleksandar Andrejevic <theflash AT sdf DOT lonestar DOT org>
7 * Hermes Belusca-Maito (hermes.belusca@sfr.fr)
8 */
9
10 #ifndef _INT32_H_
11 #define _INT32_H_
12
13 /* DEFINES ********************************************************************/
14
15 /* 32-bit Interrupt dispatcher function code for the Control BOP Handler */
16 #define CTRL_BOP_INT32 0xFF
17
18 /* 32-bit Interrupt Identifiers */
19 #define EMULATOR_MAX_INT32_NUM 0xFF + 1
20
21 #define INT_HANDLER_OFFSET 0x1000
22 #define COMMON_STUB_OFFSET 0x2000
23
24 /* FUNCTIONS ******************************************************************/
25
26 typedef VOID (WINAPI *EMULATOR_INT32_PROC)(LPWORD Stack);
27
28 VOID WINAPI Int32Dispatch(LPWORD Stack);
29 VOID WINAPI InitializeInt32(WORD BiosSegment);
30 VOID WINAPI RegisterInt32(BYTE IntNumber, EMULATOR_INT32_PROC IntHandler);
31
32 #endif // _INT32_H_
33
34 /* EOF */