VirtualBox

Ticket #15409: workround.patch

File workround.patch, 925 bytes (added by gim, 8 years ago)

Workaround patch for switch table

  • VirtualBox-5.0.20/src/VBox/Devices/BiosCommonCode/MakeAlternativeSource.cpp

    diff --git a/VirtualBox-5.0.20/src/VBox/Devices/BiosCommonCode/MakeAlternativeSource.cpp b/VirtualBox-5.0.20/src/VBox/Devices/BiosCommonCode/MakeAlternativeSource.cpp
    index 7f7c226..cd7e4b7 100644
    a b static bool disCode(uint32_t uFlatAddr, uint32_t cb, bool fIs16Bit)  
    10151015                     && pb[3] == 0x66
    10161016                     && pb[4] == 0x66
    10171017                     && pb[5] == 0x66)
     1018                 || (   pb[0] == 0x97   /* _apm_function switch */
     1019                     && pb[1] == 0x97
     1020                     && pb[2] == 0x98
     1021                     && pb[3] == 0xdd
     1022                     && pb[4] == 0x97
     1023                     && pb[5] == 0xf8)
    10181024                 || 0
    10191025                 )
    10201026            return disByteData(uFlatAddr, cb);

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy