Changeset 108872 in vbox
- Timestamp:
- Apr 7, 2025 1:48:00 PM (13 days ago)
- svn:sync-xref-src-repo-rev:
- 168322
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMAll/GITSAll.cpp
r108871 r108872 549 549 } 550 550 551 /* Indicate to the guest we've fetched all commands. */552 GITS_CRIT_SECT_ENTER(pDevIns);553 pGitsDev->uCmdReadReg = RT_BF_SET(pGitsDev->uCmdReadReg, GITS_BF_CTRL_REG_CREADR_OFFSET, offWrite);554 555 551 /* 556 552 * Process the commands in the buffer. … … 558 554 if (RT_SUCCESS(rc)) 559 555 { 560 /* Don't hold the lock while processing commands. */ 556 /* Indicate to the guest we've fetched all commands. */ 557 GITS_CRIT_SECT_ENTER(pDevIns); 558 pGitsDev->uCmdReadReg = RT_BF_SET(pGitsDev->uCmdReadReg, GITS_BF_CTRL_REG_CREADR_OFFSET, offWrite); 559 560 /* Don't hold the critical section while processing commands. */ 561 561 GITS_CRIT_SECT_LEAVE(pDevIns); 562 562 563 uint32_t const cCmds = cbCmds / GITS_CMD_SIZE;563 uint32_t const cCmds = cbCmds / sizeof(GITSCMD); 564 564 for (uint32_t idxCmd = 0; idxCmd < cCmds; idxCmd++) 565 565 { 566 PCGITSCMD pCmd = (PCGITSCMD)((uintptr_t)pvBuf + (idxCmd * GITS_CMD_SIZE));566 PCGITSCMD pCmd = (PCGITSCMD)((uintptr_t)pvBuf + (idxCmd * sizeof(GITSCMD))); 567 567 uint8_t const uCmdId = pCmd->common.uCmdId; 568 568 switch (uCmdId)
Note:
See TracChangeset
for help on using the changeset viewer.