Author: hbelusca
Date: Mon May 12 00:26:48 2014
New Revision: 63248
URL:
http://svn.reactos.org/svn/reactos?rev=63248&view=rev
Log:
[NTVDM]
Improve int32 callback stub (and sync int32.c too).
Modified:
trunk/reactos/subsystems/ntvdm/callback.c
trunk/reactos/subsystems/ntvdm/int32.c
Modified: trunk/reactos/subsystems/ntvdm/callback.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/ntvdm/callback.…
==============================================================================
--- trunk/reactos/subsystems/ntvdm/callback.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/ntvdm/callback.c [iso-8859-1] Mon May 12 00:26:48 2014
@@ -75,8 +75,7 @@
0xEB, 0xF5, // jmp BOP_SEQ (offset -11)
// EXIT:
- // 0x44, 0x44, // inc sp, inc sp
- 0x83, 0xC4, 0x02, // add sp, 2
+ 0x44, 0x44, // inc sp, inc sp
0xCF, // iret
};
@@ -202,11 +201,13 @@
BYTE IntCallback[sizeof(Int16To32)/sizeof(BYTE)];
/* Check whether the 32-bit interrupt was already registered */
- // if (Int32Proc[IntNumber] != NULL)
- // {
- // DPRINT1("RegisterInt32: Interrupt 0x%X already registered!\n",
IntNumber);
- // return 0;
- // }
+#if 0
+ if (Int32Proc[IntNumber] != NULL)
+ {
+ DPRINT1("RegisterInt32: Interrupt 0x%X already registered!\n",
IntNumber);
+ return 0;
+ }
+#endif
/* Register the 32-bit interrupt handler */
Int32Proc[IntNumber] = IntHandler;
Modified: trunk/reactos/subsystems/ntvdm/int32.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/ntvdm/int32.c?r…
==============================================================================
--- trunk/reactos/subsystems/ntvdm/int32.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/ntvdm/int32.c [iso-8859-1] Mon May 12 00:26:48 2014
@@ -111,11 +111,8 @@
BiosCode[Offset++] = 0xF5;
// EXIT:
- // BiosCode[Offset++] = 0x44; // inc sp
- // BiosCode[Offset++] = 0x44; // inc sp
- BiosCode[Offset++] = 0x83; // add sp, 2
- BiosCode[Offset++] = 0xC4;
- BiosCode[Offset++] = 0x02;
+ BiosCode[Offset++] = 0x44; // inc sp
+ BiosCode[Offset++] = 0x44; // inc sp
BiosCode[Offset++] = 0xCF; // iret