Changeset 84502 in vbox
- Timestamp:
- May 25, 2020 2:30:24 PM (5 years ago)
- svn:sync-xref-src-repo-rev:
- 138231
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/PC/BIOS/orgs.asm
r82968 r84502 1592 1592 ; The approach used is faking a warm reboot (which just skips showing the 1593 1593 ; logo), which is a bit more than what we need, but hey, it's fast. 1594 mov bp, sp 1595 mov ax, [bp+2] ; TODO: redundant? address via sp? 1596 cmp ax, BIOSSEG ; check caller's segment 1597 jz bios_initiated_boot 1598 1594 ; 1595 ; Initially we checked if the caller is in the F000h segment, i.e. the 1596 ; system BIOS. But option ROMs can also legitimately invoke INT 19h so 1597 ; we need different heuristics. 1599 1598 xor ax, ax 1600 1599 mov ds, ax 1600 mov es, ax 1601 cld 1602 ; Check if the boot sector area is untouched 1603 mov cx, 256 1604 mov di, 7C00h 1605 repe scasw 1606 jcxz bios_initiated_boot 1607 1601 1608 mov ax, 1234h 1602 1609 mov ds:[472], ax
Note:
See TracChangeset
for help on using the changeset viewer.