VirtualBox

Changeset 19015 in vbox for trunk/include/VBox


Ignore:
Timestamp:
Apr 20, 2009 7:54:29 AM (16 years ago)
Author:
vboxsync
Message:

Split up TRPM. (guest SMP)

Location:
trunk/include/VBox
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/trpm.h

    r18927 r19015  
    7474#define TRPM_INVALID_HANDLER        0
    7575
    76 VMMDECL(int)        TRPMQueryTrap(PVM pVM, uint8_t *pu8TrapNo, PTRPMEVENT pEnmType);
    77 VMMDECL(uint8_t)    TRPMGetTrapNo(PVM pVM);
    78 VMMDECL(RTGCUINT)   TRPMGetErrorCode(PVM pVM);
    79 VMMDECL(RTGCUINTPTR) TRPMGetFaultAddress(PVM pVM);
    80 VMMDECL(int)        TRPMResetTrap(PVM pVM);
    81 VMMDECL(int)        TRPMAssertTrap(PVM pVM, uint8_t u8TrapNo, TRPMEVENT enmType);
    82 VMMDECL(void)       TRPMSetErrorCode(PVM pVM, RTGCUINT uErrorCode);
    83 VMMDECL(void)       TRPMSetFaultAddress(PVM pVM, RTGCUINTPTR uCR2);
    84 VMMDECL(bool)       TRPMIsSoftwareInterrupt(PVM pVM);
    85 VMMDECL(bool)       TRPMHasTrap(PVM pVM);
    86 VMMDECL(int)        TRPMQueryTrapAll(PVM pVM, uint8_t *pu8TrapNo, PTRPMEVENT pEnmType, PRTGCUINT puErrorCode, PRTGCUINTPTR puCR2);
    87 VMMDECL(void)       TRPMSaveTrap(PVM pVM);
    88 VMMDECL(void)       TRPMRestoreTrap(PVM pVM);
    89 VMMDECL(int)        TRPMForwardTrap(PVM pVM, PCPUMCTXCORE pRegFrame, uint32_t iGate, uint32_t opsize, TRPMERRORCODE enmError, TRPMEVENT enmType, int32_t iOrgTrap);
    90 VMMDECL(int)        TRPMRaiseXcpt(PVM pVM, PCPUMCTXCORE pCtxCore, X86XCPT enmXcpt);
    91 VMMDECL(int)        TRPMRaiseXcptErr(PVM pVM, PCPUMCTXCORE pCtxCore, X86XCPT enmXcpt, uint32_t uErr);
    92 VMMDECL(int)        TRPMRaiseXcptErrCR2(PVM pVM, PCPUMCTXCORE pCtxCore, X86XCPT enmXcpt, uint32_t uErr, RTGCUINTPTR uCR2);
     76VMMDECL(int)        TRPMQueryTrap(PVMCPU pVCpu, uint8_t *pu8TrapNo, PTRPMEVENT pEnmType);
     77VMMDECL(uint8_t)    TRPMGetTrapNo(PVMCPU pVCpu);
     78VMMDECL(RTGCUINT)   TRPMGetErrorCode(PVMCPU pVCpu);
     79VMMDECL(RTGCUINTPTR) TRPMGetFaultAddress(PVMCPU pVCpu);
     80VMMDECL(int)        TRPMResetTrap(PVMCPU pVCpu);
     81VMMDECL(int)        TRPMAssertTrap(PVMCPU pVCpu, uint8_t u8TrapNo, TRPMEVENT enmType);
     82VMMDECL(void)       TRPMSetErrorCode(PVMCPU pVCpu, RTGCUINT uErrorCode);
     83VMMDECL(void)       TRPMSetFaultAddress(PVMCPU pVCpu, RTGCUINTPTR uCR2);
     84VMMDECL(bool)       TRPMIsSoftwareInterrupt(PVMCPU pVCpu);
     85VMMDECL(bool)       TRPMHasTrap(PVMCPU pVCpu);
     86VMMDECL(int)        TRPMQueryTrapAll(PVMCPU pVCpu, uint8_t *pu8TrapNo, PTRPMEVENT pEnmType, PRTGCUINT puErrorCode, PRTGCUINTPTR puCR2);
     87VMMDECL(void)       TRPMSaveTrap(PVMCPU pVCpu);
     88VMMDECL(void)       TRPMRestoreTrap(PVMCPU pVCpu);
     89VMMDECL(int)        TRPMForwardTrap(PVMCPU pVCpu, PCPUMCTXCORE pRegFrame, uint32_t iGate, uint32_t opsize, TRPMERRORCODE enmError, TRPMEVENT enmType, int32_t iOrgTrap);
     90VMMDECL(int)        TRPMRaiseXcpt(PVMCPU pVCpu, PCPUMCTXCORE pCtxCore, X86XCPT enmXcpt);
     91VMMDECL(int)        TRPMRaiseXcptErr(PVMCPU pVCpu, PCPUMCTXCORE pCtxCore, X86XCPT enmXcpt, uint32_t uErr);
     92VMMDECL(int)        TRPMRaiseXcptErrCR2(PVMCPU pVCpu, PCPUMCTXCORE pCtxCore, X86XCPT enmXcpt, uint32_t uErr, RTGCUINTPTR uCR2);
    9393
    9494
  • trunk/include/VBox/vm.h

    r18927 r19015  
    150150        char                padding[2048];        /* multiple of 64 */
    151151    } em;
     152
     153    /** TRPM part. */
     154    union
     155    {
     156#ifdef ___TRPMInternal_h
     157        struct TRPMCPU      s;
     158#endif
     159        char                padding[64];        /* multiple of 64 */
     160    } trpm;
    152161
    153162    /** TM part. */
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