X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/5ba3f43ea354af8ad55bea84372a2bc834d8757c..cc8bc92ae4a8e9f1a1ab61bf83d34ad8150b3405:/iokit/Kernel/IODMACommand.cpp diff --git a/iokit/Kernel/IODMACommand.cpp b/iokit/Kernel/IODMACommand.cpp index 5feadeb14..261f86b1b 100644 --- a/iokit/Kernel/IODMACommand.cpp +++ b/iokit/Kernel/IODMACommand.cpp @@ -1138,8 +1138,16 @@ IODMACommand::genIOVMSegments(uint32_t op, internalState->fIOVMAddrValid = state->fIOVMAddr = 0; internalState->fNextRemapPage = NULL; internalState->fNewMD = false; - state->fMapped = (0 != fMapper); mdOp = kIOMDFirstSegment; + if (fMapper) + { + if (internalState->fLocalMapperAllocValid) + { + state->fMapped = kIOMDDMAWalkMappedLocal; + state->fMappedBase = internalState->fLocalMapperAlloc; + } + else state->fMapped = true; + } }; UInt32 segIndex = 0;