Changeset 13796 in vbox for trunk/src/VBox/VMM/VMReq.cpp
- Timestamp:
- Nov 4, 2008 6:37:33 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMReq.cpp
r13782 r13796 638 638 do 639 639 { 640 pNext = pUVM->aCpu [i].vm.s.pReqs;640 pNext = pUVM->aCpus[i].vm.s.pReqs; 641 641 pReq->pNext = pNext; 642 } while (!ASMAtomicCmpXchgPtr((void * volatile *)&pUVM->aCpu [i].vm.s.pReqs, (void *)pReq, (void *)pNext));642 } while (!ASMAtomicCmpXchgPtr((void * volatile *)&pUVM->aCpus[i].vm.s.pReqs, (void *)pReq, (void *)pNext)); 643 643 644 644 /* … … 683 683 do 684 684 { 685 pNext = pUVM->aCpu [idTarget].vm.s.pReqs;685 pNext = pUVM->aCpus[idTarget].vm.s.pReqs; 686 686 pReq->pNext = pNext; 687 } while (!ASMAtomicCmpXchgPtr((void * volatile *)&pUVM->aCpu [idTarget].vm.s.pReqs, (void *)pReq, (void *)pNext));687 } while (!ASMAtomicCmpXchgPtr((void * volatile *)&pUVM->aCpus[idTarget].vm.s.pReqs, (void *)pReq, (void *)pNext)); 688 688 689 689 /* … … 703 703 LogFlow(("VMR3ReqQueue: returns %Vrc\n", rc)); 704 704 } 705 else 706 if ( pReq->enmDest == VMREQDEST_ANY 707 && !pUVMCPU /* only EMT threads have a valid pointer stored in the TLS slot. */) 705 else if ( pReq->enmDest == VMREQDEST_ANY 706 && !pUVMCPU /* only EMT threads have a valid pointer stored in the TLS slot. */) 708 707 { 709 708 unsigned fFlags = ((VMREQ volatile *)pReq)->fFlags; /* volatile paranoia */ … … 838 837 while (rc <= VINF_SUCCESS) 839 838 { 840 void *volatile *ppReqs;841 842 839 /* 843 840 * Get pending requests. 844 841 */ 842 void *volatile *ppReqs; 845 843 if (enmDest == VMREQDEST_ANY) 846 844 { … … 851 849 else 852 850 { 853 ppReqs = (void * volatile *)&pUVM->aCpu [enmDest].vm.s.pReqs;851 ppReqs = (void * volatile *)&pUVM->aCpus[enmDest].vm.s.pReqs; 854 852 if (RT_LIKELY(pUVM->pVM)) 855 853 VMCPU_FF_CLEAR(pUVM->pVM, enmDest, VM_FF_REQUEST);
Note:
See TracChangeset
for help on using the changeset viewer.