Changeset 57374 in vbox for trunk/src/VBox
- Timestamp:
- Aug 14, 2015 10:54:47 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/darwin/SUPDrv-darwin.cpp
r57371 r57374 717 717 * Get the header and figure out how much we're gonna have to read. 718 718 */ 719 IPRT_DARWIN_SAVE_EFL_AC(); 719 720 SUPREQHDR Hdr; 720 721 pUser = (user_addr_t)*(void **)pData; … … 723 724 { 724 725 OSDBGPRINT(("VBoxDrvDarwinIOCtlSlow: copyin(%llx,Hdr,) -> %#x; iCmd=%#lx\n", (unsigned long long)pUser, rc, iCmd)); 726 IPRT_DARWIN_RESTORE_EFL_AC(); 725 727 return rc; 726 728 } … … 728 730 { 729 731 OSDBGPRINT(("VBoxDrvDarwinIOCtlSlow: bad magic fFlags=%#x; iCmd=%#lx\n", Hdr.fFlags, iCmd)); 732 IPRT_DARWIN_SAVE_EFL_AC(); 730 733 return EINVAL; 731 734 } … … 736 739 { 737 740 OSDBGPRINT(("VBoxDrvDarwinIOCtlSlow: max(%#x,%#x); iCmd=%#lx\n", Hdr.cbIn, Hdr.cbOut, iCmd)); 741 IPRT_DARWIN_SAVE_EFL_AC(); 738 742 return EINVAL; 739 743 } … … 748 752 { 749 753 OSDBGPRINT(("VBoxDrvDarwinIOCtlSlow: failed to allocate buffer of %d bytes; iCmd=%#lx\n", cbReq, iCmd)); 754 IPRT_DARWIN_RESTORE_EFL_AC(); 750 755 return ENOMEM; 751 756 } … … 759 764 else 760 765 RTMemTmpFree(pHdr); 766 IPRT_DARWIN_RESTORE_EFL_AC(); 761 767 return rc; 762 768 } 763 769 if (Hdr.cbIn < cbReq) 764 770 RT_BZERO((uint8_t *)pHdr + Hdr.cbIn, cbReq - Hdr.cbIn); 771 IPRT_DARWIN_RESTORE_EFL_AC(); 765 772 } 766 773 else … … 781 788 if (pUser) 782 789 { 790 IPRT_DARWIN_SAVE_EFL_AC(); 783 791 uint32_t cbOut = pHdr->cbOut; 784 792 if (cbOut > cbReq) … … 797 805 else 798 806 RTMemTmpFree(pHdr); 807 IPRT_DARWIN_RESTORE_EFL_AC(); 799 808 } 800 809 } … … 807 816 { 808 817 if (pvPageBuf) 818 { 819 IPRT_DARWIN_SAVE_EFL_AC(); 809 820 IOFreeAligned(pvPageBuf, RT_ALIGN_Z(cbReq, PAGE_SIZE)); 821 IPRT_DARWIN_RESTORE_EFL_AC(); 822 } 810 823 else 811 824 RTMemTmpFree(pHdr);
Note:
See TracChangeset
for help on using the changeset viewer.