Author: rharabien
Date: Wed Mar 23 15:49:44 2011
New Revision: 51126
URL: http://svn.reactos.org/svn/reactos?rev=51126&view=rev
Log:
[NTOSKRNL]
Revert r51108. ProbeForRead doesn't check if memory is readable.
Improve comments and replace trick raising exception with call to ExRaiseAccessViolation.
[WIN32K]
Remove ASSERTs in IntSetSysColors: this function is only called in NtUserSetSysColors in SEH block. It shouldn't crash for NULL pointers.
Modified:
trunk/reactos/ntoskrnl/ex/exintrin.c
trunk/reactos/subsystems/win32/win32k/objects/stockobj.c
Modified: trunk/reactos/ntoskrnl/ex/exintrin.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ex/exintrin.c?rev…
==============================================================================
--- trunk/reactos/ntoskrnl/ex/exintrin.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/ex/exintrin.c [iso-8859-1] Wed Mar 23 15:49:44 2011
@@ -104,7 +104,6 @@
IN ULONG Alignment)
{
ULONG_PTR Last, Current = (ULONG_PTR)Address;
- CHAR Temp;
PAGED_CODE();
/* Only probe if we have a valid length */
@@ -132,16 +131,7 @@
ExRaiseAccessViolation();
}
- /* Round down to the last page */
- Last = PAGE_ROUND_DOWN(Last) + PAGE_SIZE;
- do
- {
- /* Attempt a read */
- Temp = *(volatile CHAR*)Current;
-
- /* Go to the next address */
- Current = PAGE_ROUND_DOWN(Current) + PAGE_SIZE;
- } while (Current != Last);
+ /* ProbeForRead doesn't check if memory pages are readable! */
}
}
Modified: trunk/reactos/subsystems/win32/win32k/objects/stockobj.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ob…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/objects/stockobj.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/objects/stockobj.c [iso-8859-1] Wed Mar 23 15:49:44 2011
@@ -221,9 +221,6 @@
{
UINT i;
- ASSERT(Elements);
- ASSERT(Colors);
-
for (i = 0; i < nColors; i++)
{
if ((UINT)(*Elements) < NUM_SYSCOLORS)
Author: fireball
Date: Tue Mar 22 16:35:51 2011
New Revision: 51120
URL: http://svn.reactos.org/svn/reactos?rev=51120&view=rev
Log:
[NTOS/KE]
- Remove VirtualBox SYSENTER-hack added in r50991.
- Bring back NT-compatible SYSENTER support detection changed in r50991.
Modified:
trunk/reactos/ntoskrnl/ke/i386/cpu.c
Modified: trunk/reactos/ntoskrnl/ke/i386/cpu.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ke/i386/cpu.c?rev…
==============================================================================
--- trunk/reactos/ntoskrnl/ke/i386/cpu.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/ke/i386/cpu.c [iso-8859-1] Tue Mar 22 16:35:51 2011
@@ -303,17 +303,10 @@
/* Remove support for correct PTE support. */
FeatureBits &= ~KF_WORKING_PTE;
}
-
- /* Virtualbox claims to have no SYSENTER support,
- * which is false for processors >= Pentium Pro */
- if(Prcb->CpuType >= 6)
- {
- Reg[3] |= 0x800;
- }
-
- /* Check if the CPU is too old to support SYSENTER,
- * See Intel CPUID instruction manual for details*/
- if ((Reg[0] & 0x0FFF3FFF) < 0x00000633)
+
+ /* Check if the CPU is too old to support SYSENTER */
+ if ((Prcb->CpuType < 6) ||
+ ((Prcb->CpuType == 6) && (Prcb->CpuStep < 0x0303)))
{
/* Disable it */
Reg[3] &= ~0x800;
Author: cfinck
Date: Tue Mar 22 12:45:40 2011
New Revision: 51118
URL: http://svn.reactos.org/svn/reactos?rev=51118&view=rev
Log:
Create a branch for Neeraj Yadav's work on the Audio Mixer
Added:
branches/nyadav-audio-branch/
- copied from r51117, trunk/