VirtualBox

Changeset 74665 in vbox for trunk


Ignore:
Timestamp:
Oct 8, 2018 9:57:32 AM (6 years ago)
Author:
vboxsync
Message:

BIOS: Test VBOX_BIOS_CPU instead of BX_CPU.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/PC/BIOS/keyboard.c

    r69501 r74665  
    341341    uint16_t    buffer_start, buffer_end, buffer_head, buffer_tail, temp_tail;
    342342
    343 #if BX_CPU < 2
     343#if VBOX_BIOS_CPU >= 80286
     344    buffer_start = read_word(0x0040, 0x0080);
     345    buffer_end   = read_word(0x0040, 0x0082);
     346#else
    344347    buffer_start = 0x001E;
    345348    buffer_end   = 0x003E;
    346 #else
    347     buffer_start = read_word(0x0040, 0x0080);
    348     buffer_end   = read_word(0x0040, 0x0082);
    349349#endif
    350350
     
    617617    uint8_t     acode, scode;
    618618
    619 #if BX_CPU < 2
     619#if VBOX_BIOS_CPU >= 80286
     620    buffer_start = read_word(0x0040, 0x0080);
     621    buffer_end   = read_word(0x0040, 0x0082);
     622#else
    620623    buffer_start = 0x001E;
    621624    buffer_end   = 0x003E;
    622 #else
    623     buffer_start = read_word(0x0040, 0x0080);
    624     buffer_end   = read_word(0x0040, 0x0082);
    625625#endif
    626626
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