Ticket #10253: ata_dma_setting.patch

File ata_dma_setting.patch, 823 bytes (added by anevilyak, 7 years ago)
  • src/add-ons/kernel/bus_managers/ata/ATAChannel.cpp

    diff --git a/src/add-ons/kernel/bus_managers/ata/ATAChannel.cpp b/src/add-ons/kernel/bus_managers/ata/ATAChannel.cpp
    index 1aefcbc..8b228c0 100644
    a b ATAChannel::ATAChannel(device_node *node)  
    3232    snprintf(fDebugContext, sizeof(fDebugContext), " %" B_PRIu32, fChannelID);
    3333
    3434    if (fUseDMA) {
    35         void *settings = load_driver_settings(B_SAFEMODE_DRIVER_SETTINGS);
    36         if (settings != NULL) {
    37             if (get_driver_boolean_parameter(settings,
    38                 B_SAFEMODE_DISABLE_IDE_DMA, false, false)) {
     35        if (get_safemode_boolean(B_SAFEMODE_DISABLE_IDE_DMA, false)) {
    3936                TRACE_ALWAYS("disabling DMA because of safemode setting\n");
    4037                fUseDMA = false;
    41             }
    42 
    43             unload_driver_settings(settings);
    4438        }
    4539    }
    4640