diskstart: don't let the function number clobber the LBA
authorH. Peter Anvin <hpa@linux.intel.com>
Wed, 30 Jun 2010 00:17:58 +0000 (17:17 -0700)
committerH. Peter Anvin <hpa@linux.intel.com>
Wed, 30 Jun 2010 00:17:58 +0000 (17:17 -0700)
commit8daaa1843b50292ac12e9701f81579480905353b
tree8376638f65634b736f859e3ccb307219858dcfe5
parent70d25e3364070f24c89c4120f8bd609f7c2ee05d
diskstart: don't let the function number clobber the LBA

The LBA for getonesec and getlinsec is in EDX:EAX, but both DL and AX
are function inputs to INT 13h (drive number and function number).  We
need to preserve the LBA across *both* those, otherwise retries will
not function.

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
core/diskstart.inc