mirror of
https://github.com/reactos/reactos.git
synced 2025-01-04 21:38:43 +00:00
[NTVDM]: Use the 0xCC (int 3) instruction as the memory fill byte.
svn path=/trunk/; revision=64383
This commit is contained in:
parent
f455bcf161
commit
90d370dbb6
1 changed files with 6 additions and 2 deletions
|
@ -549,8 +549,12 @@ BOOLEAN EmulatorInitialize(HANDLE ConsoleInput, HANDLE ConsoleOutput)
|
||||||
wprintf(L"FATAL: Failed to allocate VDM memory.\n");
|
wprintf(L"FATAL: Failed to allocate VDM memory.\n");
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
// For diagnostics purposes!!
|
/*
|
||||||
RtlFillMemory(BaseAddress, MAX_ADDRESS, 0xFF);
|
* For diagnostics purposes, we fill the memory with INT 0x03 codes
|
||||||
|
* so that if a program wants to execute random code in memory, we can
|
||||||
|
* retrieve the exact CS:IP where the problem happens.
|
||||||
|
*/
|
||||||
|
RtlFillMemory(BaseAddress, MAX_ADDRESS, 0xCC);
|
||||||
|
|
||||||
/* Initialize I/O ports */
|
/* Initialize I/O ports */
|
||||||
/* Initialize RAM */
|
/* Initialize RAM */
|
||||||
|
|
Loading…
Reference in a new issue