mirror of
https://github.com/reactos/reactos.git
synced 2024-06-28 17:01:28 +00:00
[0.4.2]
- Add a hack to avoid MmGetPhysicalAddress failures during USB transfers CORE-9224 svn path=/branches/ros-branch-0_4_2/; revision=72016
This commit is contained in:
parent
633468a888
commit
a20eaf6799
|
@ -601,6 +601,7 @@ CUSBRequest::InitDescriptor(
|
|||
//
|
||||
// get address
|
||||
//
|
||||
*(volatile char *)TransferBuffer; // HACK for CORE-9224
|
||||
Address = MmGetPhysicalAddress(TransferBuffer);
|
||||
|
||||
//
|
||||
|
|
|
@ -771,6 +771,7 @@ CUSBRequest::BuildIsochronousEndpoint(
|
|||
//
|
||||
// get physical page
|
||||
//
|
||||
*(volatile char *)Buffer; // HACK for CORE-9224
|
||||
Page = MmGetPhysicalAddress(Buffer).LowPart;
|
||||
|
||||
//
|
||||
|
@ -1087,6 +1088,7 @@ CUSBRequest::InitDescriptor(
|
|||
//
|
||||
// store physical address of buffer
|
||||
//
|
||||
*(volatile char *)TransferBuffer; // HACK for CORE-9224
|
||||
CurrentDescriptor->BufferPhysical = MmGetPhysicalAddress(TransferBuffer).LowPart;
|
||||
CurrentDescriptor->LastPhysicalByteAddress = CurrentDescriptor->BufferPhysical + TransferBufferLength - 1;
|
||||
|
||||
|
@ -1503,6 +1505,7 @@ CUSBRequest::BuildControlTransferDescriptor(
|
|||
//
|
||||
// store physical address of buffer
|
||||
//
|
||||
*(volatile char *)MmGetMdlVirtualAddress(m_TransferBufferMDL); // HACK for CORE-9224
|
||||
DataDescriptor->BufferPhysical = MmGetPhysicalAddress(MmGetMdlVirtualAddress(m_TransferBufferMDL)).LowPart;
|
||||
DataDescriptor->LastPhysicalByteAddress = DataDescriptor->BufferPhysical + m_TransferBufferLength - 1;
|
||||
|
||||
|
|
Loading…
Reference in a new issue