Author: fireball
Date: Mon Sep 29 04:11:55 2008
New Revision: 36587
URL:
http://svn.reactos.org/svn/reactos?rev=36587&view=rev
Log:
- Commit the whole mapped BIOS/device registers block, not only the first 2 pages (why so,
David?).
- Use Zw instead of Nt.
Modified:
trunk/reactos/subsystems/win32/csrss/video.c
Modified: trunk/reactos/subsystems/win32/csrss/video.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/csrss/vid…
==============================================================================
--- trunk/reactos/subsystems/win32/csrss/video.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/csrss/video.c [iso-8859-1] Mon Sep 29 04:11:55 2008
@@ -46,11 +46,11 @@
Offset.QuadPart = 0xa0000;
ViewSize = 0x100000 - 0xa0000;
BaseAddress = (PVOID)0xa0000;
- Status = NtMapViewOfSection(PhysMemHandle,
+ Status = ZwMapViewOfSection(PhysMemHandle,
NtCurrentProcess(),
&BaseAddress,
0,
- 8192,
+ ViewSize,
&Offset,
&ViewSize,
ViewUnmap,
@@ -59,12 +59,12 @@
if (!NT_SUCCESS(Status))
{
DPRINT1("Couldn't map physical memory (%x)\n", Status);
- NtClose(PhysMemHandle);
+ ZwClose(PhysMemHandle);
return 0;
}
/* Close physical memory section handle */
- NtClose(PhysMemHandle);
+ ZwClose(PhysMemHandle);
if (BaseAddress != (PVOID)0xa0000)
{
@@ -73,8 +73,8 @@
return 0;
}
- /* Map some memory to use for the non-BIOS parts of
- * the v86 mode address space
+ /* Allocate some low memory to use for the non-BIOS
+ * parts of the v86 mode address space
*/
BaseAddress = (PVOID)0x1;
ViewSize = 0xa0000 - 0x1000;