Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge remote branch 'genec/core-diskstart-chkerr-for-hpa'
  • Loading branch information
H. Peter Anvin committed Mar 2, 2011
2 parents c022534 + e922a1f commit 4a125af
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions core/diskstart.inc
Expand Up @@ -181,6 +181,8 @@ verify_checksum:
dec ecx
jnz .checksum

mov ds,cx

and eax,eax ; Should be zero
jz all_read ; We're cool, go for it!

Expand Down Expand Up @@ -437,9 +439,8 @@ SectorPtrsEnd equ $

section .text16
all_read:
; We enter here with both DS and ES scrambled...
; We enter here with ES scrambled...
xor ax,ax
mov ds,ax
mov es,ax
;
; Let the user (and programmer!) know we got this far. This used to be
Expand Down

0 comments on commit 4a125af

Please sign in to comment.