Author: tkreuzer
Date: Sat Dec 29 21:40:41 2012
New Revision: 58047
URL: http://svn.reactos.org/svn/reactos?rev=58047&view=rev
Log:
[NTOSKRNL]
In NtAllocateVirtualMemory, when MEM_RESET is passed, silence the DPRINT and also return STATUS_SUCCESS, since MEM_RESET is only an optimization (tells the memory manager that the contents shouldn't be written to the pagefile) and it won't hurt (except the performance) to pretend success. On the other hand paging out is probably never done anyway due to broken Mm.
This fixes spamming the log by Firefox. It does not fix the hangs that firfox suffers from.
Modified:
trunk/reactos/ntoskrnl/mm/ARM3/virtual.c
Modified: trunk/reactos/ntoskrnl/mm/ARM3/virtual.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/mm/ARM3/virtual.c…
==============================================================================
--- trunk/reactos/ntoskrnl/mm/ARM3/virtual.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/mm/ARM3/virtual.c [iso-8859-1] Sat Dec 29 21:40:41 2012
@@ -3861,8 +3861,9 @@
}
if ((AllocationType & MEM_RESET) == MEM_RESET)
{
- DPRINT1("MEM_RESET not supported\n");
- Status = STATUS_INVALID_PARAMETER;
+ /// @todo HACK: pretend success
+ DPRINT("MEM_RESET not supported\n");
+ Status = STATUS_SUCCESS;
goto FailPathNoLock;
}
if (Process->VmTopDown == 1)
Author: hbelusca
Date: Sat Dec 29 19:23:02 2012
New Revision: 58043
URL: http://svn.reactos.org/svn/reactos?rev=58043&view=rev
Log:
[CONFIGURE]
Fix MSVC configure build (problem of expansion of environment variables).
Modified:
trunk/reactos/configure.cmd
Modified: trunk/reactos/configure.cmd
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/configure.cmd?rev=58043&r1…
==============================================================================
--- trunk/reactos/configure.cmd [iso-8859-1] (original)
+++ trunk/reactos/configure.cmd [iso-8859-1] Sat Dec 29 19:23:02 2012
@@ -1,4 +1,11 @@
@echo off
+
+:: This is needed so as to avoid static expansion of environment variables
+:: inside if (...) conditionals.
+:: See http://stackoverflow.com/questions/305605/weird-scope-issue-in-bat-file
+:: for more explanation.
+:: Precisely needed for configuring Visual Studio Environment.
+setlocal enabledelayedexpansion
:: Special case %1 = arm_hosttools %2 = vcvarsall.bat %3 = %CMAKE_GENERATOR%
if /I "%1" == "arm_hosttools" (
@@ -46,7 +53,7 @@
set USE_WDK_HEADERS=0
) else if defined VCINSTALLDIR (
- :: VS command prompt does not put this in enviroment vars
+ :: VS command prompt does not put this in environment vars
cl 2>&1 | find "x86" > NUL && set ARCH=i386
cl 2>&1 | find "x64" > NUL && set ARCH=amd64
cl 2>&1 | find "ARM" > NUL && set ARCH=arm
@@ -59,30 +66,30 @@
exit /b
)
- echo Detected Visual Studio Environment %BUILD_ENVIRONMENT%-%ARCH%
+ echo Detected Visual Studio Environment !BUILD_ENVIRONMENT!-!ARCH!
if /I "%1" == "VSSolution" (
- if "%BUILD_ENVIRONMENT%" == "VS8" (
- if "%ARCH%" == "amd64" (
+ if "!BUILD_ENVIRONMENT!" == "VS8" (
+ if "!ARCH!" == "amd64" (
set CMAKE_GENERATOR="Visual Studio 8 2005 Win64"
) else (
set CMAKE_GENERATOR="Visual Studio 8 2005"
)
- ) else if "%BUILD_ENVIRONMENT%" == "VS9" (
- if "%ARCH%" == "amd64" (
+ ) else if "!BUILD_ENVIRONMENT!" == "VS9" (
+ if "!ARCH!" == "amd64" (
set CMAKE_GENERATOR="Visual Studio 9 2008 Win64"
) else (
set CMAKE_GENERATOR="Visual Studio 9 2008"
)
- ) else if "%BUILD_ENVIRONMENT%" == "VS10" (
- if "%ARCH%" == "amd64" (
+ ) else if "!BUILD_ENVIRONMENT!" == "VS10" (
+ if "!ARCH!" == "amd64" (
set CMAKE_GENERATOR="Visual Studio 10 Win64"
) else (
set CMAKE_GENERATOR="Visual Studio 10"
)
- ) else if "%BUILD_ENVIRONMENT%" == "VS11" (
- if "%ARCH%" == "amd64" (
+ ) else if "!BUILD_ENVIRONMENT!" == "VS11" (
+ if "!ARCH!" == "amd64" (
set CMAKE_GENERATOR="Visual Studio 11 Win64"
- ) else if "%ARCH%" == "arm" (
+ ) else if "!ARCH!" == "arm" (
set CMAKE_GENERATOR="Visual Studio 11 ARM"
) else (
set CMAKE_GENERATOR="Visual Studio 11"
@@ -111,7 +118,7 @@
:: Checkpoint
if not defined ARCH (
- echo unknown build architecture
+ echo Unknown build architecture
exit /b
)