Author: hbelusca
Date: Sun Jul 6 11:23:22 2014
New Revision: 63691
URL: http://svn.reactos.org/svn/reactos?rev=63691&view=rev
Log:
[SACDRV]
ASSERT takes a condition, not a string.
[NTOS]
Use ASSERTMSG instead of a weird ASSERT construction.
Modified:
trunk/reactos/drivers/sac/driver/memory.c
trunk/reactos/ntoskrnl/po/power.c
Modified: trunk/reactos/drivers/sac/driver/memory.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/sac/driver/memory.…
==============================================================================
--- trunk/reactos/drivers/sac/driver/memory.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/sac/driver/memory.c [iso-8859-1] Sun Jul 6 11:23:22 2014
@@ -104,7 +104,8 @@
PSAC_MEMORY_ENTRY LocalDescriptor, NextDescriptor;
ULONG GlobalSize, ActualSize;
PVOID Buffer;
- ASSERT("Tag != FREE_POOL_TAG");
+
+ ASSERT(Tag != FREE_POOL_TAG);
SAC_DBG(SAC_DBG_MM, "Entering.\n");
/* Acquire the memory allocation lock and align the size request */
Modified: trunk/reactos/ntoskrnl/po/power.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/po/power.c?rev=63…
==============================================================================
--- trunk/reactos/ntoskrnl/po/power.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/po/power.c [iso-8859-1] Sun Jul 6 11:23:22 2014
@@ -925,7 +925,7 @@
}
/* You should not have made it this far */
- ASSERT(FALSE && "System is still up and running?!");
+ ASSERTMSG("System is still up and running?!", FALSE);
break;
}
Author: tfaber
Date: Sat Jul 5 15:30:22 2014
New Revision: 63686
URL: http://svn.reactos.org/svn/reactos?rev=63686&view=rev
Log:
[USBEHCI]
- Initialize the new queue head before inserting it into the asynchronous schedule list, and add a memory barrier to ensure this order. The list can be read by the host controller at any time, so the new item must be valid when inserted. See EHCI spec section 4.8.1.
Modified:
trunk/reactos/drivers/usb/usbehci/usb_queue.cpp
Modified: trunk/reactos/drivers/usb/usbehci/usb_queue.cpp
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/usb/usbehci/usb_qu…
==============================================================================
--- trunk/reactos/drivers/usb/usbehci/usb_queue.cpp [iso-8859-1] (original)
+++ trunk/reactos/drivers/usb/usbehci/usb_queue.cpp [iso-8859-1] Sat Jul 5 15:30:22 2014
@@ -479,20 +479,22 @@
InsertTailList(&HeadQueueHead->LinkedQueueHeads, &NewQueueHead->LinkedQueueHeads);
//
+ // Update HLP for NewQueueHead to point to next, which should be the HeadQueueHead
+ //
+ Entry = NewQueueHead->LinkedQueueHeads.Flink;
+ NextQueueHead = CONTAINING_RECORD(Entry, QUEUE_HEAD, LinkedQueueHeads);
+ //ASSERT(NextQueueHead == HeadQueueHead);
+ NewQueueHead->HorizontalLinkPointer = (NextQueueHead->PhysicalAddr | QH_TYPE_QH);
+
+ _ReadWriteBarrier();
+
+ //
// Update HLP for Previous QueueHead, which should be the last in list.
//
Entry = NewQueueHead->LinkedQueueHeads.Blink;
LastQueueHead = CONTAINING_RECORD(Entry, QUEUE_HEAD, LinkedQueueHeads);
//ASSERT(LastQueueHead == HeadQueueHead);
LastQueueHead->HorizontalLinkPointer = (NewQueueHead->PhysicalAddr | QH_TYPE_QH);
-
- //
- // Update HLP for NewQueueHead to point to next, which should be the HeadQueueHead
- //
- Entry = NewQueueHead->LinkedQueueHeads.Flink;
- NextQueueHead = CONTAINING_RECORD(Entry, QUEUE_HEAD, LinkedQueueHeads);
- //ASSERT(NextQueueHead == HeadQueueHead);
- NewQueueHead->HorizontalLinkPointer = (NextQueueHead->PhysicalAddr | QH_TYPE_QH);
//
// head queue head must be halted