[NTVDM]
[reactos.git] / reactos / 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 Identifiers */
16 #define EMULATOR_MAX_INT32_NUM 0xFF + 1
17
18 #define INT_HANDLER_OFFSET 0x1000
19 #define COMMON_STUB_OFFSET 0x2000
20
21 /* FUNCTIONS ******************************************************************/
22
23 typedef VOID (WINAPI *EMULATOR_INT32_PROC)(LPWORD Stack);
24
25 VOID WINAPI Int32Dispatch(LPWORD Stack);
26 VOID InitializeInt32(WORD BiosSegment);
27 VOID RegisterInt32(BYTE IntNumber, EMULATOR_INT32_PROC IntHandler);
28
29 #endif // _INT32_H_
30
31 /* EOF */