VirtualBox

Changeset 70614 in vbox


Ignore:
Timestamp:
Jan 17, 2018 7:39:40 PM (7 years ago)
Author:
vboxsync
Message:

bugref:8256 Allow guest parallel device to be assigned base address 0x3BC w/o generating address space conflict.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Parallel/DevParallel.cpp

    r69500 r70614  
    718718                                N_("Configuration error: Failed to get the \"IOBase\" value"));
    719719
     720    int port_count = (pThis->IOBase == 0x3BC) ? 4 : 8;
    720721    /*
    721722     * Register the I/O ports and saved state.
    722723     */
    723     rc = PDMDevHlpIOPortRegister(pDevIns, pThis->IOBase, 8, 0,
     724    rc = PDMDevHlpIOPortRegister(pDevIns, pThis->IOBase, port_count, 0,
    724725                                 parallelIOPortWrite, parallelIOPortRead,
    725726                                 NULL, NULL, "Parallel");
     
    738739    if (pThis->fGCEnabled)
    739740    {
    740         rc = PDMDevHlpIOPortRegisterRC(pDevIns, pThis->IOBase, 8, 0, "parallelIOPortWrite",
     741        rc = PDMDevHlpIOPortRegisterRC(pDevIns, pThis->IOBase, port_count, 0, "parallelIOPortWrite",
    741742                                       "parallelIOPortRead", NULL, NULL, "Parallel");
    742743        if (RT_FAILURE(rc))
     
    744745
    745746#if 0
    746         rc = PDMDevHlpIOPortRegisterGC(pDevIns, io_base+0x400, 8, 0, "parallelIOPortWriteECP",
     747        rc = PDMDevHlpIOPortRegisterGC(pDevIns, io_base+0x400, port_count, 0, "parallelIOPortWriteECP",
    747748                                       "parallelIOPortReadECP", NULL, NULL, "Parallel Ecp");
    748749        if (RT_FAILURE(rc))
     
    753754    if (pThis->fR0Enabled)
    754755    {
    755         rc = PDMDevHlpIOPortRegisterR0(pDevIns, pThis->IOBase, 8, 0, "parallelIOPortWrite",
     756        rc = PDMDevHlpIOPortRegisterR0(pDevIns, pThis->IOBase, port_count, 0, "parallelIOPortWrite",
    756757                                       "parallelIOPortRead", NULL, NULL, "Parallel");
    757758        if (RT_FAILURE(rc))
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