VirtualBox

Changeset 67115 in vbox for trunk/src/VBox/Devices/PC/BIOS


Ignore:
Timestamp:
May 26, 2017 11:52:06 AM (8 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
115782
Message:

BIOS: Clear high bits of registers after POST.

Location:
trunk/src/VBox/Devices/PC/BIOS
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/PC/BIOS/makefile

    r60580 r67115  
    2121
    2222DEFS = -DVBOX -DVBOX_LANBOOT_SEG=0xE200 -DVBOX_VERSION_STRING=$(Q)0.9$(Q) &
    23  -DVBOX_WITH_SCSI -DVBOX_BIOS_CPU=80286
     23 -DVBOX_WITH_SCSI -DVBOX_BIOS_CPU=80386
    2424
    2525AFLAGS = -q -0 -wx
  • trunk/src/VBox/Devices/PC/BIOS/orgs.asm

    r67065 r67115  
    638638                call    rom_scan_
    639639               
     640if VBOX_BIOS_CPU ge 80386
     641                ;; The POST code does not bother preserving high bits of the
     642                ;; 32-bit registers. Now is a good time to clear them so that
     643                ;; there's no garbage left in high bits.
     644                .386
     645                xor     eax, eax
     646                xor     ebx, ebx
     647                xor     ecx, ecx
     648                xor     edx, edx
     649                .286
     650endif
     651
    640652                call    _print_bios_banner
    641653               
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette