VirtualBox

Changeset 78870 in vbox for trunk


Ignore:
Timestamp:
May 30, 2019 8:54:59 AM (6 years ago)
Author:
vboxsync
Message:

VMM/APIC: const bits.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/vmm/apic.h

    r76585 r78870  
    169169/* These functions are exported as they are called from external modules (recompiler). */
    170170VMMDECL(void)               APICUpdatePendingInterrupts(PVMCPU pVCpu);
    171 VMMDECL(int)                APICGetTpr(PVMCPU pVCpu, uint8_t *pu8Tpr, bool *pfPending, uint8_t *pu8PendingIntr);
     171VMMDECL(int)                APICGetTpr(PCVMCPU pVCpu, uint8_t *pu8Tpr, bool *pfPending, uint8_t *pu8PendingIntr);
    172172VMMDECL(int)                APICSetTpr(PVMCPU pVCpu, uint8_t u8Tpr);
    173173
    174174/* These functions are VMM internal. */
    175 VMM_INT_DECL(bool)          APICIsEnabled(PVMCPU pVCpu);
     175VMM_INT_DECL(bool)          APICIsEnabled(PCVMCPU pVCpu);
    176176VMM_INT_DECL(bool)          APICGetHighestPendingInterrupt(PVMCPU pVCpu, uint8_t *pu8PendingIntr);
    177177VMM_INT_DECL(bool)          APICQueueInterruptToService(PVMCPU pVCpu, uint8_t u8PendingIntr);
     
    181181VMM_INT_DECL(int)           APICGetTimerFreq(PVM pVM, uint64_t *pu64Value);
    182182VMM_INT_DECL(VBOXSTRICTRC)  APICLocalInterrupt(PVMCPU pVCpu, uint8_t u8Pin, uint8_t u8Level, int rcRZ);
    183 VMM_INT_DECL(uint64_t)      APICGetBaseMsrNoCheck(PVMCPU pVCpu);
     183VMM_INT_DECL(uint64_t)      APICGetBaseMsrNoCheck(PCVMCPU pVCpu);
    184184VMM_INT_DECL(VBOXSTRICTRC)  APICGetBaseMsr(PVMCPU pVCpu, uint64_t *pu64Value);
    185185VMM_INT_DECL(int)           APICSetBaseMsr(PVMCPU pVCpu, uint64_t u64BaseMsr);
     
    187187VMM_INT_DECL(int)           APICBusDeliver(PVM pVM, uint8_t uDest, uint8_t uDestMode, uint8_t uDeliveryMode, uint8_t uVector,
    188188                                           uint8_t uPolarity, uint8_t uTriggerMode, uint32_t uTagSrc);
    189 VMM_INT_DECL(int)           APICGetApicPageForCpu(PVMCPU pVCpu, PRTHCPHYS pHCPhys, PRTR0PTR pR0Ptr, PRTR3PTR pR3Ptr,
     189VMM_INT_DECL(int)           APICGetApicPageForCpu(PCVMCPU pVCpu, PRTHCPHYS pHCPhys, PRTR0PTR pR0Ptr, PRTR3PTR pR3Ptr,
    190190                                                  PRTRCPTR pRCPtr);
    191191
  • trunk/src/VBox/VMM/VMMAll/APICAll.cpp

    r78208 r78870  
    409409 * @param   pVCpu           The cross context virtual CPU structure.
    410410 */
    411 VMM_INT_DECL(bool) APICIsEnabled(PVMCPU pVCpu)
     411VMM_INT_DECL(bool) APICIsEnabled(PCVMCPU pVCpu)
    412412{
    413413    PCAPICCPU pApicCpu = VMCPU_TO_APICCPU(pVCpu);
     
    24852485 * @param   pVCpu       The cross context virtual CPU structure.
    24862486 */
    2487 VMM_INT_DECL(uint64_t) APICGetBaseMsrNoCheck(PVMCPU pVCpu)
     2487VMM_INT_DECL(uint64_t) APICGetBaseMsrNoCheck(PCVMCPU pVCpu)
    24882488{
    24892489    VMCPU_ASSERT_EMT_OR_NOT_RUNNING(pVCpu);
     
    25432543 *                              interrupt is pending (optional, can be NULL).
    25442544 */
    2545 static bool apicGetHighestPendingInterrupt(PVMCPU pVCpu, uint8_t *pu8PendingIntr)
     2545static bool apicGetHighestPendingInterrupt(PCVMCPU pVCpu, uint8_t *pu8PendingIntr)
    25462546{
    25472547    PCXAPICPAGE pXApicPage = VMCPU_TO_CXAPICPAGE(pVCpu);
     
    25692569 *                          interrupt (optional, can be NULL).
    25702570 */
    2571 VMMDECL(int) APICGetTpr(PVMCPU pVCpu, uint8_t *pu8Tpr, bool *pfPending, uint8_t *pu8PendingIntr)
     2571VMMDECL(int) APICGetTpr(PCVMCPU pVCpu, uint8_t *pu8Tpr, bool *pfPending, uint8_t *pu8PendingIntr)
    25722572{
    25732573    VMCPU_ASSERT_EMT(pVCpu);
     
    34933493 *                          (optional).
    34943494 */
    3495 VMM_INT_DECL(int) APICGetApicPageForCpu(PVMCPU pVCpu, PRTHCPHYS pHCPhys, PRTR0PTR pR0Ptr, PRTR3PTR pR3Ptr, PRTRCPTR pRCPtr)
     3495VMM_INT_DECL(int) APICGetApicPageForCpu(PCVMCPU pVCpu, PRTHCPHYS pHCPhys, PRTR0PTR pR0Ptr, PRTR3PTR pR3Ptr, PRTRCPTR pRCPtr)
    34963496{
    34973497    AssertReturn(pVCpu,   VERR_INVALID_PARAMETER);
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette