[ros-diffs] [fireball] 36587: - Commit the whole mapped BIOS/device registers block, not only the first 2 pages (why so, David?). - Use Zw instead of Nt.

fireball at svn.reactos.org fireball at svn.reactos.org
Mon Sep 29 11:11:56 CEST 2008


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/video.c?rev=36587&r1=36586&r2=36587&view=diff
==============================================================================
--- 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;



More information about the Ros-diffs mailing list