[prev in list] [next in list] [prev in thread] [next in thread]
List: ros-diffs
Subject: [ros-diffs] [fireball] 36587: - Commit the whole mapped BIOS/device
From: fireball () svn ! reactos ! org
Date: 2008-09-29 9:11:56
Message-ID: 20080929100847.D26F4989F1 () mail ! reactos ! org
[Download RAW message or body]
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;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic