equal
deleted
inserted
replaced
1957 else |
1957 else |
1958 { |
1958 { |
1959 // Parcel out the memory between endpoints |
1959 // Parcel out the memory between endpoints |
1960 TUint8* newAddr = reinterpret_cast<TUint8*>(chunk->LinearAddress()); |
1960 TUint8* newAddr = reinterpret_cast<TUint8*>(chunk->LinearAddress()); |
1961 __KTRACE_OPT(KUSB, Kern::Printf("SetupInterfaceMemory alloc new chunk=0x%x, size=%d", newAddr,bufSizes[chunkInd])); |
1961 __KTRACE_OPT(KUSB, Kern::Printf("SetupInterfaceMemory alloc new chunk=0x%x, size=%d", newAddr,bufSizes[chunkInd])); |
1962 chunkChanged = (newAddr != oldAddr); |
1962 // The check is important to avoid chunkChanged to be corrupted. |
|
1963 // This code change is to fix the problem that one chunk is used by multiple interfaces. |
|
1964 if(!chunkChanged) |
|
1965 { |
|
1966 chunkChanged = (newAddr != oldAddr); |
|
1967 } |
1963 aHwChunks[chunkInd] = chunk; |
1968 aHwChunks[chunkInd] = chunk; |
1964 } |
1969 } |
1965 chunkInd++; |
1970 chunkInd++; |
1966 } |
1971 } |
1967 |
1972 |