vbox的更動 11223 路徑 trunk/src/VBox/Devices/PC
- 時間撮記:
- 2008-8-7 下午06:12:47 (16 年 以前)
- 檔案:
-
- 修改 1 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/Devices/PC/DevAPIC.cpp
r11222 r11223 364 364 PDMBOTHCBDECL(void) apicSetBase(PPDMDEVINS pDevIns, uint64_t val) 365 365 { 366 APICState *s = PDMINS 2DATA(pDevIns, APICState *);366 APICState *s = PDMINS_2_DATA(pDevIns, APICState *); 367 367 Log(("cpu_set_apic_base: %016RX64\n", val)); 368 368 … … 446 446 PDMBOTHCBDECL(uint64_t) apicGetBase(PPDMDEVINS pDevIns) 447 447 { 448 APICState *s = PDMINS 2DATA(pDevIns, APICState *);448 APICState *s = PDMINS_2_DATA(pDevIns, APICState *); 449 449 Log(("apicGetBase: %016llx\n", (uint64_t)s->apicbase)); 450 450 return s->apicbase; … … 453 453 PDMBOTHCBDECL(void) apicSetTPR(PPDMDEVINS pDevIns, uint8_t val) 454 454 { 455 APICState *s = PDMINS 2DATA(pDevIns, APICState *);455 APICState *s = PDMINS_2_DATA(pDevIns, APICState *); 456 456 LogFlow(("apicSetTPR: val=%#x (trp %#x -> %#x)\n", val, s->tpr, (val & 0x0f) << 4)); 457 457 apic_update_tpr(s, (val & 0x0f) << 4); … … 460 460 PDMBOTHCBDECL(uint8_t) apicGetTPR(PPDMDEVINS pDevIns) 461 461 { 462 APICState *s = PDMINS 2DATA(pDevIns, APICState *);462 APICState *s = PDMINS_2_DATA(pDevIns, APICState *); 463 463 Log2(("apicGetTPR: returns %#x\n", s->tpr >> 4)); 464 464 return s->tpr >> 4; … … 473 473 uint8_t u8TriggerMode) 474 474 { 475 APICState *s = PDMINS 2DATA(pDevIns, APICState *);475 APICState *s = PDMINS_2_DATA(pDevIns, APICState *); 476 476 LogFlow(("apicBusDeliverCallback: s=%p pDevIns=%p u8Dest=%#x u8DestMode=%#x u8DeliveryMode=%#x iVector=%#x u8Polarity=%#x u8TriggerMode=%#x\n", 477 477 s, pDevIns, u8Dest, u8DestMode, u8DeliveryMode, iVector, u8Polarity, u8TriggerMode)); … … 565 565 int irrv, ppr; 566 566 567 APICState *s = PDMINS 2DATA(pDevIns, APICState *);567 APICState *s = PDMINS_2_DATA(pDevIns, APICState *); 568 568 if (!s) 569 569 return false; … … 767 767 PDMBOTHCBDECL(int) apicGetInterrupt(PPDMDEVINS pDevIns) 768 768 { 769 APICState *s = PDMINS 2DATA(pDevIns, APICState *);769 APICState *s = PDMINS_2_DATA(pDevIns, APICState *); 770 770 #endif /* VBOX */ 771 771 int intno; … … 861 861 static DECLCALLBACK(void) apicTimer(PPDMDEVINS pDevIns, PTMTIMER pTimer) 862 862 { 863 APICState *s = PDMINS 2DATA(pDevIns, APICState *);863 APICState *s = PDMINS_2_DATA(pDevIns, APICState *); 864 864 s->pApicHlpR3->pfnLock(pDevIns, VERR_INTERNAL_ERROR); 865 865 #endif /* VBOX */ … … 1541 1541 PDMBOTHCBDECL(int) apicMMIORead(PPDMDEVINS pDevIns, void *pvUser, RTGCPHYS GCPhysAddr, void *pv, unsigned cb) 1542 1542 { 1543 APICState *s = PDMINS 2DATA(pDevIns, APICState *);1543 APICState *s = PDMINS_2_DATA(pDevIns, APICState *); 1544 1544 1545 1545 STAM_COUNTER_INC(&CTXSUFF(s->StatMMIORead)); … … 1587 1587 PDMBOTHCBDECL(int) apicMMIOWrite(PPDMDEVINS pDevIns, void *pvUser, RTGCPHYS GCPhysAddr, void *pv, unsigned cb) 1588 1588 { 1589 APICState *s = PDMINS 2DATA(pDevIns, APICState *);1589 APICState *s = PDMINS_2_DATA(pDevIns, APICState *); 1590 1590 1591 1591 STAM_COUNTER_INC(&CTXSUFF(s->StatMMIOWrite)); … … 1620 1620 static DECLCALLBACK(int) apicSaveExec(PPDMDEVINS pDevIns, PSSMHANDLE pSSMHandle) 1621 1621 { 1622 APICState *s = PDMINS 2DATA(pDevIns, APICState *);1622 APICState *s = PDMINS_2_DATA(pDevIns, APICState *); 1623 1623 apic_save(pSSMHandle, s); 1624 1624 return TMR3TimerSave(s->CTX_SUFF(pTimer), pSSMHandle); … … 1630 1630 static DECLCALLBACK(int) apicLoadExec(PPDMDEVINS pDevIns, PSSMHANDLE pSSMHandle, uint32_t u32Version) 1631 1631 { 1632 APICState *s = PDMINS 2DATA(pDevIns, APICState *);1632 APICState *s = PDMINS_2_DATA(pDevIns, APICState *); 1633 1633 if (apic_load(pSSMHandle, s, u32Version)) { 1634 1634 AssertFailed(); … … 1643 1643 static DECLCALLBACK(void) apicReset(PPDMDEVINS pDevIns) 1644 1644 { 1645 APICState *s = PDMINS 2DATA(pDevIns, APICState *);1645 APICState *s = PDMINS_2_DATA(pDevIns, APICState *); 1646 1646 s->pApicHlpR3->pfnLock(pDevIns, VERR_INTERNAL_ERROR); 1647 1647 apic_reset(s); … … 1656 1656 static DECLCALLBACK(void) apicRelocate(PPDMDEVINS pDevIns, RTGCINTPTR offDelta) 1657 1657 { 1658 APICState *pData = PDMINS 2DATA(pDevIns, APICState *);1658 APICState *pData = PDMINS_2_DATA(pDevIns, APICState *); 1659 1659 pData->pDevInsRC = PDMDEVINS_2_RCPTR(pDevIns); 1660 1660 pData->pApicHlpRC = pData->pApicHlpR3->pfnGetRCHelpers(pDevIns); … … 1667 1667 static DECLCALLBACK(int) apicConstruct(PPDMDEVINS pDevIns, int iInstance, PCFGMNODE pCfgHandle) 1668 1668 { 1669 APICState *pData = PDMINS 2DATA(pDevIns, APICState *);1669 APICState *pData = PDMINS_2_DATA(pDevIns, APICState *); 1670 1670 PDMAPICREG ApicReg; 1671 1671 int rc; … … 1898 1898 PDMBOTHCBDECL(int) ioapicMMIORead(PPDMDEVINS pDevIns, void *pvUser, RTGCPHYS GCPhysAddr, void *pv, unsigned cb) 1899 1899 { 1900 IOAPICState *s = PDMINS 2DATA(pDevIns, IOAPICState *);1900 IOAPICState *s = PDMINS_2_DATA(pDevIns, IOAPICState *); 1901 1901 IOAPIC_LOCK(s, VINF_IOM_HC_MMIO_READ); 1902 1902 … … 1927 1927 PDMBOTHCBDECL(int) ioapicMMIOWrite(PPDMDEVINS pDevIns, void *pvUser, RTGCPHYS GCPhysAddr, void *pv, unsigned cb) 1928 1928 { 1929 IOAPICState *s = PDMINS 2DATA(pDevIns, IOAPICState *);1929 IOAPICState *s = PDMINS_2_DATA(pDevIns, IOAPICState *); 1930 1930 1931 1931 STAM_COUNTER_INC(&CTXSUFF(s->StatMMIOWrite)); … … 1949 1949 PDMBOTHCBDECL(void) ioapicSetIrq(PPDMDEVINS pDevIns, int iIrq, int iLevel) 1950 1950 { 1951 IOAPICState *pThis = PDMINS 2DATA(pDevIns, IOAPICState *);1951 IOAPICState *pThis = PDMINS_2_DATA(pDevIns, IOAPICState *); 1952 1952 STAM_COUNTER_INC(&pThis->CTXSUFF(StatSetIrq)); 1953 1953 LogFlow(("ioapicSetIrq: iIrq=%d iLevel=%d\n", iIrq, iLevel)); … … 1963 1963 static DECLCALLBACK(int) ioapicSaveExec(PPDMDEVINS pDevIns, PSSMHANDLE pSSMHandle) 1964 1964 { 1965 IOAPICState *s = PDMINS 2DATA(pDevIns, IOAPICState *);1965 IOAPICState *s = PDMINS_2_DATA(pDevIns, IOAPICState *); 1966 1966 ioapic_save(pSSMHandle, s); 1967 1967 return VINF_SUCCESS; … … 1973 1973 static DECLCALLBACK(int) ioapicLoadExec(PPDMDEVINS pDevIns, PSSMHANDLE pSSMHandle, uint32_t u32Version) 1974 1974 { 1975 IOAPICState *s = PDMINS 2DATA(pDevIns, IOAPICState *);1975 IOAPICState *s = PDMINS_2_DATA(pDevIns, IOAPICState *); 1976 1976 1977 1977 if (ioapic_load(pSSMHandle, s, u32Version)) { … … 1988 1988 static DECLCALLBACK(void) ioapicReset(PPDMDEVINS pDevIns) 1989 1989 { 1990 IOAPICState *s = PDMINS 2DATA(pDevIns, IOAPICState *);1990 IOAPICState *s = PDMINS_2_DATA(pDevIns, IOAPICState *); 1991 1991 s->pIoApicHlpR3->pfnLock(pDevIns, VERR_INTERNAL_ERROR); 1992 1992 ioapic_reset(s); … … 1999 1999 static DECLCALLBACK(void) ioapicRelocate(PPDMDEVINS pDevIns, RTGCINTPTR offDelta) 2000 2000 { 2001 IOAPICState *s = PDMINS 2DATA(pDevIns, IOAPICState *);2001 IOAPICState *s = PDMINS_2_DATA(pDevIns, IOAPICState *); 2002 2002 s->pDevInsRC = PDMDEVINS_2_RCPTR(pDevIns); 2003 2003 s->pIoApicHlpRC = s->pIoApicHlpR3->pfnGetRCHelpers(pDevIns); … … 2009 2009 static DECLCALLBACK(int) ioapicConstruct(PPDMDEVINS pDevIns, int iInstance, PCFGMNODE pCfgHandle) 2010 2010 { 2011 IOAPICState *s = PDMINS 2DATA(pDevIns, IOAPICState *);2011 IOAPICState *s = PDMINS_2_DATA(pDevIns, IOAPICState *); 2012 2012 PDMIOAPICREG IoApicReg; 2013 2013 bool fGCEnabled;
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器