VirtualBox

Ignore:
Timestamp:
Apr 21, 2008 6:42:58 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
29989
Message:

Additions/FreeBSD: Setup IRQ only if initializing of the device state was successful, eliminate a tab

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxGuest/VBoxGuest-freebsd.c

    r8188 r8250  
    556556        {
    557557            /*
    558              * Add IRQ of VMMDev.
     558             * Call the common device extension initializer.
    559559             */
    560             rc = VBoxGuestFreeBSDAddIRQ(pDevice, pState);
     560            rc = VBoxGuestInitDevExt(&g_DevExt, pState->uIOPortBase, pState->pMMIOBase,
     561                                     pState->VMMDevMemSize, VBOXOSTYPE_FreeBSD);
    561562            if (RT_SUCCESS(rc))
    562563            {
    563564                /*
    564                  * Call the common device extension initializer.
     565                 * Add IRQ of VMMDev.
    565566                 */
    566                 rc = VBoxGuestInitDevExt(&g_DevExt, pState->uIOPortBase, pState->pMMIOBase,
    567                                             pState->VMMDevMemSize, VBOXOSTYPE_FreeBSD);
     567                rc = VBoxGuestFreeBSDAddIRQ(pDevice, pState);
    568568                if (RT_SUCCESS(rc))
    569569                {
     
    579579                    }
    580580
    581                     printf("vboxdrv: EVENTHANDLER_REGISTER(dev_clone,,,) failed\n");
     581                    printf(DEVICE_NAME ": EVENTHANDLER_REGISTER(dev_clone,,,) failed\n");
    582582                    clone_cleanup(&g_pVBoxGuestFreeBSDClones);
    583                     VBoxGuestDeleteDevExt(&g_DevExt);
     583                    VBoxGuestFreeBSDRemoveIRQ(pDevice, pState);
    584584                }
    585585                else
    586586                    printf((DEVICE_NAME ":VBoxGuestInitDevExt failed.\n"));
    587                 VBoxGuestFreeBSDRemoveIRQ(pDevice, pState);
     587                VBoxGuestDeleteDevExt(&g_DevExt);
    588588            }
    589589            else
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