VirtualBox

Ignore:
Timestamp:
Nov 5, 2008 2:01:12 AM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
38823
Message:

IN_GC -> IN_RC.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/PC/DevAPIC.cpp

    r13519 r13832  
    185185
    186186typedef uint32_t PhysApicId;
    187 typedef uint32_t LogApicId; 
     187typedef uint32_t LogApicId;
    188188#endif
    189189
     
    194194    uint32_t apicbase;
    195195#ifdef VBOX
    196     /* Task priority register (interrupt level) */ 
     196    /* Task priority register (interrupt level) */
    197197    uint32_t   tpr;
    198198    /* Logical APIC id */
     
    324324                         uint8_t delivery_mode, uint8_t vector_num,
    325325                         uint8_t polarity, uint8_t trigger_mode);
    326 static void apic_timer_update(APICDeviceInfo* dev, APICState *s, 
     326static void apic_timer_update(APICDeviceInfo* dev, APICState *s,
    327327                              int64_t current_time);
    328328static int apic_get_arb_pri(APICState *s);
     
    538538    /* We cannot change if this CPU is BSP or not by writing to MSR - it's hardwired */
    539539    PDMAPICVERSION oldMode = getApicMode(s);
    540     s->apicbase = 
     540    s->apicbase =
    541541            (val & 0xfffff000) | /* base */
    542             (val & getApicEnableBits(dev)) | /* mode */ 
     542            (val & getApicEnableBits(dev)) | /* mode */
    543543            (s->apicbase & MSR_IA32_APICBASE_BSP) /* keep BSP bit */;
    544544    PDMAPICVERSION newMode = getApicMode(s);
    545    
     545
    546546    if (oldMode != newMode)
    547547    {
     
    660660{
    661661    APICDeviceInfo *dev = PDMINS_2_DATA(pDevIns, APICDeviceInfo *);
    662    
     662
    663663    if (dev->enmVersion < PDMAPICVERSION_X2APIC)
    664664        return VERR_EM_INTERPRETER;
     
    669669    APICState* apic = getLapicById(dev, idCpu);
    670670
    671     switch (index) 
     671    switch (index)
    672672    {
    673673        case 0x02:
     
    740740            apic_bus_deliver(dev,
    741741                             1 << getLapicById(dev, idCpu)->id /* Self */,
    742                              0 /* Delivery mode - fixed */, 
     742                             0 /* Delivery mode - fixed */,
    743743                             vector,
    744744                             0 /* Polarity - conform to the bus */,
     
    766766    uint64_t val = 0;
    767767
    768     switch (index) 
     768    switch (index)
    769769    {
    770770        case 0x02: /* id */
     
    15901590    if ((version_id < 1) || (version_id > 2))
    15911591        return -EINVAL;
    1592    
     1592
    15931593     /* XXX: what if the base changes? (registered memory regions) */
    15941594    qemu_get_be32s(f, &s->apicbase);
     
    20182018                &&  ++s->ulTPRPatchAttempts < APIC_MAX_PATCH_ATTEMPTS)
    20192019            {
    2020 #ifdef IN_GC
     2020#ifdef IN_RC
    20212021                pDevIns->pDevHlpGC->pfnPATMSetMMIOPatchInfo(pDevIns, GCPhysAddr, &s->tpr);
    20222022#else
Note: See TracChangeset for help on using the changeset viewer.

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