Changeset 39059 in vbox
- Timestamp:
- Oct 20, 2011 2:48:56 PM (13 years ago)
- Location:
- trunk/src/VBox/Devices
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Graphics/DevVGA.cpp
r38805 r39059 1170 1170 /* convert to VGA memory offset */ 1171 1171 memory_map_mode = (s->gr[6] >> 2) & 3; 1172 #ifndef IN_RC 1172 1173 RTGCPHYS GCPhys = addr; /* save original address */ 1174 #endif 1173 1175 1174 1176 addr &= 0x1ffff; … … 1249 1251 /* convert to VGA memory offset */ 1250 1252 memory_map_mode = (s->gr[6] >> 2) & 3; 1253 #ifndef IN_RC 1251 1254 RTGCPHYS GCPhys = addr; /* save original address */ 1255 #endif 1252 1256 1253 1257 addr &= 0x1ffff; … … 4114 4118 4115 4119 /** 4116 * Prints a separator line. 4117 * 4120 * Prints a separator line. 4121 * 4118 4122 * @param pHlp Callback functions for doing output. 4119 4123 * @param cCols The number of columns. … … 4122 4126 static void vgaInfoTextPrintSeparatorLine(PCDBGFINFOHLP pHlp, uint32_t cCols, const char *pszTitle) 4123 4127 { 4124 if (pszTitle) 4128 if (pszTitle) 4125 4129 { 4126 4130 size_t cchTitle = strlen(pszTitle); 4127 if (cchTitle + 6 >= cCols) 4131 if (cchTitle + 6 >= cCols) 4128 4132 { 4129 4133 pHlp->pfnPrintf(pHlp, "-- %s --", pszTitle); … … 4134 4138 uint32_t cchLeft = (cCols - cchTitle - 2) / 2; 4135 4139 cCols -= cchLeft + cchTitle + 2; 4136 while (cchLeft-- > 0) 4140 while (cchLeft-- > 0) 4137 4141 pHlp->pfnPrintf(pHlp, "-"); 4138 4142 pHlp->pfnPrintf(pHlp, " %s ", pszTitle); … … 4140 4144 } 4141 4145 4142 while (cCols-- > 0) 4146 while (cCols-- > 0) 4143 4147 pHlp->pfnPrintf(pHlp, "-"); 4144 4148 pHlp->pfnPrintf(pHlp, "\n"); … … 4150 4154 * 4151 4155 * @param pThis The vga state. 4152 * @param pHlp Callback functions for doing output. 4153 * @param offStart Where to start dumping (relative to the VRAM). 4154 * @param cbLine The source line length (aka line_offset). 4155 * @param cCols The number of columns on the screen. 4156 * @param pHlp Callback functions for doing output. 4157 * @param offStart Where to start dumping (relative to the VRAM). 4158 * @param cbLine The source line length (aka line_offset). 4159 * @param cCols The number of columns on the screen. 4156 4160 * @param cRows The number of rows to dump. 4157 * @param iScrBegin The row at which the current screen output starts. 4158 * @param iScrEnd The row at which the current screen output end 4161 * @param iScrBegin The row at which the current screen output starts. 4162 * @param iScrEnd The row at which the current screen output end 4159 4163 * (exclusive). 4160 4164 */ 4161 static void vgaInfoTextWorker(PVGASTATE pThis, PCDBGFINFOHLP pHlp, 4165 static void vgaInfoTextWorker(PVGASTATE pThis, PCDBGFINFOHLP pHlp, 4162 4166 uint32_t offStart, uint32_t cbLine, 4163 uint32_t cCols, uint32_t cRows, 4167 uint32_t cCols, uint32_t cRows, 4164 4168 uint32_t iScrBegin, uint32_t iScrEnd) 4165 4169 { 4166 4170 /* Title, */ 4167 4171 char szTitle[32]; 4168 if (iScrBegin || iScrEnd < cRows) 4169 RTStrPrintf(szTitle, sizeof(szTitle), "%ux%u (+%u before, +%u after)", 4172 if (iScrBegin || iScrEnd < cRows) 4173 RTStrPrintf(szTitle, sizeof(szTitle), "%ux%u (+%u before, +%u after)", 4170 4174 cCols, iScrEnd - iScrBegin, iScrBegin, cRows - iScrEnd); 4171 4175 else … … 4218 4222 PVGASTATE pThis = PDMINS_2_DATA(pDevIns, PVGASTATE); 4219 4223 4220 /* 4224 /* 4221 4225 * Parse args. 4222 4226 */ … … 4224 4228 if (pszArgs && *pszArgs) 4225 4229 { 4226 if (!strcmp(pszArgs, "all")) 4230 if (!strcmp(pszArgs, "all")) 4227 4231 fAll = true; 4228 else if (!strcmp(pszArgs, "scr") || !strcmp(pszArgs, "screen")) 4232 else if (!strcmp(pszArgs, "scr") || !strcmp(pszArgs, "screen")) 4229 4233 fAll = false; 4230 4234 else … … 4270 4274 4271 4275 if (fAll) { 4272 vgaInfoTextWorker(pThis, pHlp, offStart - iScrBegin * cbLine, cbLine, 4276 vgaInfoTextWorker(pThis, pHlp, offStart - iScrBegin * cbLine, cbLine, 4273 4277 cCols, cRows, iScrBegin, iScrBegin + cScrRows); 4274 4278 } else { … … 4560 4564 4561 4565 4562 /** 4563 * Internal vgaPortUpdateDisplayAll worker called under pThis->lock. 4564 */ 4566 /** 4567 * Internal vgaPortUpdateDisplayAll worker called under pThis->lock. 4568 */ 4565 4569 static int updateDisplayAll(PVGASTATE pThis) 4566 4570 { … … 4592 4596 PVGASTATE pThis = IDISPLAYPORT_2_VGASTATE(pInterface); 4593 4597 PDMDEV_ASSERT_EMT(VGASTATE2DEVINS(pThis)); 4594 PPDMDEVINS pDevIns = pThis->CTX_SUFF(pDevIns);4595 4598 4596 4599 /* This is called both in VBVA mode and normal modes. */ … … 4673 4676 4674 4677 /* 4675 * Allocate the buffer for 32 bits per pixel bitmap 4676 * 4678 * Allocate the buffer for 32 bits per pixel bitmap 4679 * 4677 4680 * Note! The size can't be zero or greater than the size of the VRAM. 4678 4681 * Inconsistent VGA device state can cause the incorrect size values. … … 4709 4712 pThis->fRenderVRAM = 1; /* force the guest VRAM rendering to the given buffer. */ 4710 4713 4711 /* 4714 /* 4712 4715 * Make the screenshot. 4713 4716 * -
trunk/src/VBox/Devices/Network/DrvDedicatedNic.cpp
r35353 r39059 326 326 PDRVDEDICATEDNIC pThis = RT_FROM_MEMBER(pInterface, DRVDEDICATEDNIC, CTX_SUFF(INetworkUp)); 327 327 /** @todo enable/disable promiscuous mode (should be easy) */ 328 NOREF(pThis); 328 329 } 329 330 -
trunk/src/VBox/Devices/PC/DevIoApic.cpp
r38850 r39059 435 435 uint8_t trigger_mode = (uValue >> VBOX_MSI_DATA_TRIGGER_SHIFT) & 0x1; 436 436 uint8_t delivery_mode = (uValue >> VBOX_MSI_DATA_DELIVERY_MODE_SHIFT) & 0x7; 437 /** 437 #if 0 438 /* 438 439 * This bit indicates whether the message should be directed to the 439 440 * processor with the lowest interrupt priority among … … 441 442 */ 442 443 uint8_t redir_hint = (GCAddr >> VBOX_MSI_ADDR_REDIRECTION_SHIFT) & 0x1; 443 444 #endif 444 445 int rc = pThis->CTX_SUFF(pIoApicHlp)->pfnApicBusDeliver(pDevIns, 445 446 dest,
Note:
See TracChangeset
for help on using the changeset viewer.