mirror of
https://github.com/reactos/reactos.git
synced 2024-09-10 21:04:26 +00:00
![Aleksandar Andrejevic](/assets/img/avatar_default.png)
To make debugging easier, put the interrupt handlers at offset 0x1000, and reserve 16 bytes for each. Also, move the common stub to offset 0x2000. That way the entry point of, for example, INT 0x21 is at F000:1210. svn path=/branches/ntvdm/; revision=60933
35 lines
1 KiB
C
35 lines
1 KiB
C
/*
|
|
* COPYRIGHT: GPL - See COPYING in the top level directory
|
|
* PROJECT: ReactOS Virtual DOS Machine
|
|
* FILE: int32.h
|
|
* PURPOSE: 32-bit Interrupt Handlers
|
|
* PROGRAMMERS: Aleksandar Andrejevic <theflash AT sdf DOT lonestar DOT org>
|
|
* Hermes Belusca-Maito (hermes.belusca@sfr.fr)
|
|
*/
|
|
|
|
#ifndef _INT32_H_
|
|
#define _INT32_H_
|
|
|
|
/* DEFINES ********************************************************************/
|
|
|
|
/* 32-bit Interrupt dispatcher function code for the Control BOP Handler */
|
|
#define CTRL_BOP_INT32 0xFF
|
|
|
|
/* 32-bit Interrupt Identifiers */
|
|
#define EMULATOR_MAX_INT32_NUM 0xFF + 1
|
|
|
|
#define INT_HANDLER_OFFSET 0x1000
|
|
#define COMMON_STUB_OFFSET 0x2000
|
|
|
|
/* FUNCTIONS ******************************************************************/
|
|
|
|
typedef VOID (WINAPI *EMULATOR_INT32_PROC)(LPWORD Stack);
|
|
|
|
VOID WINAPI Int32Dispatch(LPWORD Stack);
|
|
VOID WINAPI InitializeInt32(WORD BiosSegment);
|
|
VOID WINAPI RegisterInt32(BYTE IntNumber, EMULATOR_INT32_PROC IntHandler);
|
|
|
|
#endif // _INT32_H_
|
|
|
|
/* EOF */
|