Changeset 77727 in vbox for trunk/src/VBox
- Timestamp:
- Mar 15, 2019 2:14:18 PM (6 years ago)
- Location:
- trunk/src/VBox
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/SUPDrv.cpp
r77423 r77727 4487 4487 * @param puRevision Where to store the microcode revision. 4488 4488 */ 4489 int VBOXCALL supdrvQueryUcodeRev(uint32_t *puRevision)4489 static int VBOXCALL supdrvQueryUcodeRev(uint32_t *puRevision) 4490 4490 { 4491 4491 int rc = VERR_UNSUPPORTED_CPU; -
trunk/src/VBox/HostDrivers/Support/SUPDrvGip.cpp
r76553 r77727 1013 1013 * the measurements on.} 1014 1014 */ 1015 DECLCALLBACK(void) supdrvGipInitReadTscAndNanoTsOnCpu(RTCPUID idCpu, void *pvUser1, void *pvUser2)1015 static DECLCALLBACK(void) supdrvGipInitReadTscAndNanoTsOnCpu(RTCPUID idCpu, void *pvUser1, void *pvUser2) 1016 1016 { 1017 1017 RTCCUINTREG fEFlags = ASMIntDisableFlags(); … … 3419 3419 { 3420 3420 /* Read, kick & wait #1. */ 3421 uint64_t registeruTsc = ASMReadTSC();3421 uint64_t uTsc = ASMReadTSC(); 3422 3422 ASMAtomicWriteU32(&pOtherSync->uSyncVar, GIP_TSC_DELTA_SYNC2_GO_GO); 3423 3423 ASMSerializeInstruction(); … … 3510 3510 for (i = 0; i < RT_ELEMENTS(pArgs->uWorker.Verify.auTscs); i += 2) 3511 3511 { 3512 uint64_t registeruTsc;3512 uint64_t uTsc; 3513 3513 3514 3514 /* Wait, Read and Kick #1. */ … … 4173 4173 { 4174 4174 PSUPDRVDEVEXT pDevExt = (PSUPDRVDEVEXT)pvUser; 4175 uint32_t cConsecutiveTimeouts = 0;4176 4175 int rc = VERR_INTERNAL_ERROR_2; 4177 4176 for (;;) … … 4225 4224 case kTscDeltaThreadState_Measuring: 4226 4225 { 4227 cConsecutiveTimeouts = 0;4228 4226 if (pDevExt->fTscThreadRecomputeAllDeltas) 4229 4227 { -
trunk/src/VBox/HostDrivers/VBoxNetAdp/linux/VBoxNetAdp-linux.c
r77722 r77727 183 183 } 184 184 185 st ruct net_device_stats *vboxNetAdpLinuxGetStats(struct net_device *pNetDev)185 static struct net_device_stats *vboxNetAdpLinuxGetStats(struct net_device *pNetDev) 186 186 { 187 187 PVBOXNETADPPRIV pPriv = netdev_priv(pNetDev); -
trunk/src/VBox/HostDrivers/VBoxPci/VBoxPci.c
r76553 r77727 160 160 161 161 162 #if 0 /** @todo r=bird: Who the heck is supposed to call this?!? */ 162 163 DECLHIDDEN(void) vboxPciDevCleanup(PVBOXRAWPCIINS pThis) 163 164 { … … 180 181 vboxPciGlobalsUnlock(pThis->pGlobals); 181 182 } 183 #endif 182 184 183 185 … … 674 676 } 675 677 678 676 679 /** 677 680 * Try to close the IDC connection to SUPDRV if established. … … 683 686 * @param pGlobals Pointer to the globals. 684 687 */ 685 DECLHIDDEN(int)vboxPciDeleteIdc(PVBOXRAWPCIGLOBALS pGlobals)688 static int vboxPciDeleteIdc(PVBOXRAWPCIGLOBALS pGlobals) 686 689 { 687 690 int rc; … … 718 721 * @param pGlobals Pointer to the globals. 719 722 */ 720 DECLHIDDEN(int)vboxPciInitGlobals(PVBOXRAWPCIGLOBALS pGlobals)723 static int vboxPciInitGlobals(PVBOXRAWPCIGLOBALS pGlobals) 721 724 { 722 725 /* … … 742 745 * Deletes the globals. 743 746 * 744 *745 747 * @param pGlobals Pointer to the globals. 746 748 */ 747 DECLHIDDEN(void)vboxPciDeleteGlobals(PVBOXRAWPCIGLOBALS pGlobals)749 static void vboxPciDeleteGlobals(PVBOXRAWPCIGLOBALS pGlobals) 748 750 { 749 751 Assert(!pGlobals->fIDCOpen); … … 783 785 { 784 786 int rc = vboxPciDeleteIdc(pGlobals); 785 786 787 if (RT_SUCCESS(rc)) 787 788 vboxPciDeleteGlobals(pGlobals); -
trunk/src/VBox/Runtime/common/log/log.cpp
r77557 r77727 3607 3607 3608 3608 3609 /** 3610 * stpncpy implementation for use in rtLogOutputPrefixed w/ padding. 3611 * 3612 * @returns Pointer to the destination buffer byte following the copied string. 3613 * @param pszDst The destination buffer. 3614 * @param pszSrc The source string. 3615 * @param cchSrc The number of characters to copy from the 3616 * source. Equal or less than string length. 3617 * @param cchMinWidth The minimum field with, padd with spaces to 3618 * reach this. 3619 */ 3620 DECLINLINE(char *) rtLogStPNCpyPad2(char *pszDst, const char *pszSrc, size_t cchSrc, size_t cchMinWidth) 3621 { 3622 Assert(pszSrc); 3623 Assert(strlen(pszSrc) >= cchSrc); 3624 3625 memcpy(pszDst, pszSrc, cchSrc); 3626 pszDst += cchSrc; 3627 do 3628 *pszDst++ = ' '; 3629 while (cchSrc++ < cchMinWidth); 3630 3631 return pszDst; 3632 } 3633 3634 3609 3635 3610 3636 /** … … 3916 3942 const unsigned fGrp = pLogger->afGroups[pArgs->iGroup != ~0U ? pArgs->iGroup : 0]; 3917 3943 const char *pszGroup; 3918 size_t cch ;3944 size_t cchGroup; 3919 3945 switch (pArgs->fFlags & fGrp) 3920 3946 { 3921 case 0: pszGroup = "--------"; cch = sizeof("--------") - 1; break;3922 case RTLOGGRPFLAGS_ENABLED: pszGroup = "enabled" ; cch = sizeof("enabled" ) - 1; break;3923 case RTLOGGRPFLAGS_LEVEL_1: pszGroup = "level 1" ; cch = sizeof("level 1" ) - 1; break;3924 case RTLOGGRPFLAGS_LEVEL_2: pszGroup = "level 2" ; cch = sizeof("level 2" ) - 1; break;3925 case RTLOGGRPFLAGS_LEVEL_3: pszGroup = "level 3" ; cch = sizeof("level 3" ) - 1; break;3926 case RTLOGGRPFLAGS_LEVEL_4: pszGroup = "level 4" ; cch = sizeof("level 4" ) - 1; break;3927 case RTLOGGRPFLAGS_LEVEL_5: pszGroup = "level 5" ; cch = sizeof("level 5" ) - 1; break;3928 case RTLOGGRPFLAGS_LEVEL_6: pszGroup = "level 6" ; cch = sizeof("level 6" ) - 1; break;3929 case RTLOGGRPFLAGS_LEVEL_7: pszGroup = "level 7" ; cch = sizeof("level 7" ) - 1; break;3930 case RTLOGGRPFLAGS_LEVEL_8: pszGroup = "level 8" ; cch = sizeof("level 8" ) - 1; break;3931 case RTLOGGRPFLAGS_LEVEL_9: pszGroup = "level 9" ; cch = sizeof("level 9" ) - 1; break;3932 case RTLOGGRPFLAGS_LEVEL_10: pszGroup = "level 10"; cch = sizeof("level 10") - 1; break;3933 case RTLOGGRPFLAGS_LEVEL_11: pszGroup = "level 11"; cch = sizeof("level 11") - 1; break;3934 case RTLOGGRPFLAGS_LEVEL_12: pszGroup = "level 12"; cch = sizeof("level 12") - 1; break;3935 case RTLOGGRPFLAGS_FLOW: pszGroup = "flow" ; cch = sizeof("flow" ) - 1; break;3936 case RTLOGGRPFLAGS_WARN: pszGroup = "warn" ; cch = sizeof("warn" ) - 1; break;3937 default: pszGroup = "????????"; cch = sizeof("????????") - 1; break;3947 case 0: pszGroup = "--------"; cchGroup = sizeof("--------") - 1; break; 3948 case RTLOGGRPFLAGS_ENABLED: pszGroup = "enabled" ; cchGroup = sizeof("enabled" ) - 1; break; 3949 case RTLOGGRPFLAGS_LEVEL_1: pszGroup = "level 1" ; cchGroup = sizeof("level 1" ) - 1; break; 3950 case RTLOGGRPFLAGS_LEVEL_2: pszGroup = "level 2" ; cchGroup = sizeof("level 2" ) - 1; break; 3951 case RTLOGGRPFLAGS_LEVEL_3: pszGroup = "level 3" ; cchGroup = sizeof("level 3" ) - 1; break; 3952 case RTLOGGRPFLAGS_LEVEL_4: pszGroup = "level 4" ; cchGroup = sizeof("level 4" ) - 1; break; 3953 case RTLOGGRPFLAGS_LEVEL_5: pszGroup = "level 5" ; cchGroup = sizeof("level 5" ) - 1; break; 3954 case RTLOGGRPFLAGS_LEVEL_6: pszGroup = "level 6" ; cchGroup = sizeof("level 6" ) - 1; break; 3955 case RTLOGGRPFLAGS_LEVEL_7: pszGroup = "level 7" ; cchGroup = sizeof("level 7" ) - 1; break; 3956 case RTLOGGRPFLAGS_LEVEL_8: pszGroup = "level 8" ; cchGroup = sizeof("level 8" ) - 1; break; 3957 case RTLOGGRPFLAGS_LEVEL_9: pszGroup = "level 9" ; cchGroup = sizeof("level 9" ) - 1; break; 3958 case RTLOGGRPFLAGS_LEVEL_10: pszGroup = "level 10"; cchGroup = sizeof("level 10") - 1; break; 3959 case RTLOGGRPFLAGS_LEVEL_11: pszGroup = "level 11"; cchGroup = sizeof("level 11") - 1; break; 3960 case RTLOGGRPFLAGS_LEVEL_12: pszGroup = "level 12"; cchGroup = sizeof("level 12") - 1; break; 3961 case RTLOGGRPFLAGS_FLOW: pszGroup = "flow" ; cchGroup = sizeof("flow" ) - 1; break; 3962 case RTLOGGRPFLAGS_WARN: pszGroup = "warn" ; cchGroup = sizeof("warn" ) - 1; break; 3963 default: pszGroup = "????????"; cchGroup = sizeof("????????") - 1; break; 3938 3964 } 3939 psz = rtLogStPNCpyPad (psz, pszGroup, 16, 8);3965 psz = rtLogStPNCpyPad2(psz, pszGroup, RT_MIN(cchGroup, 16), 8); 3940 3966 } 3941 3967 #define CCH_PREFIX_16 CCH_PREFIX_15 + 17 -
trunk/src/VBox/Runtime/common/table/avlpv.cpp
r76553 r77727 26 26 27 27 #ifndef NOFILEID 28 static const char szFileId[] = "Id: kAVLPVInt.c,v 1.5 2003/02/13 02:02:35 bird Exp $"; 28 /*static const char szFileId[] = "Id: kAVLPVInt.c,v 1.5 2003/02/13 02:02:35 bird Exp $";*/ 29 29 #endif 30 30 -
trunk/src/VBox/Runtime/include/internal/initterm.h
r76585 r77727 49 49 DECLHIDDEN(void) rtR0TermNative(void); 50 50 51 # ifdef RT_OS_LINUX 52 /* in alloc-r0drv0-linux.c */ 53 DECLHIDDEN(void) rtR0MemExecCleanup(void); 54 # endif 55 51 56 #endif /* IN_RING0 */ 52 57 -
trunk/src/VBox/Runtime/r0drv/linux/alloc-r0drv-linux.c
r76553 r77727 62 62 # include <iprt/errcore.h> 63 63 #endif 64 65 #include "internal/initterm.h" 64 66 65 67 -
trunk/src/VBox/Runtime/r0drv/linux/initterm-r0drv-linux.c
r76553 r77727 45 45 static DECLARE_TASK_QUEUE(g_rtR0LnxWorkQueue); 46 46 #endif 47 48 49 /*********************************************************************************************************************************50 * Internal Functions *51 *********************************************************************************************************************************/52 /* in alloc-r0drv0-linux.c */53 DECLHIDDEN(void) rtR0MemExecCleanup(void);54 47 55 48 -
trunk/src/VBox/Runtime/r0drv/linux/memobj-r0drv-linux.c
r77549 r77727 140 140 { 141 141 default: 142 AssertMsgFailed(("%#x %d\n", fProt, fKernel)); 142 AssertMsgFailed(("%#x %d\n", fProt, fKernel)); RT_FALL_THRU(); 143 143 case RTMEM_PROT_NONE: 144 144 return PAGE_NONE; -
trunk/src/VBox/Runtime/r0drv/linux/timer-r0drv-linux.c
r76553 r77727 545 545 546 546 default: 547 AssertMsgFailed(("%d\n", enmState)); 547 AssertMsgFailed(("%d\n", enmState)); RT_FALL_THRU(); 548 548 case RTTIMERLNXSTATE_STARTING: 549 549 case RTTIMERLNXSTATE_MP_STARTING: … … 597 597 case RTTIMERLNXSTATE_CB_RESTARTING: 598 598 case RTTIMERLNXSTATE_CB_DESTROYING: 599 AssertMsgFailed(("%d\n", enmState)); 599 AssertMsgFailed(("%d\n", enmState)); RT_FALL_THRU(); 600 600 default: 601 601 return false;
Note:
See TracChangeset
for help on using the changeset viewer.