4k_sector: Support sectors >512
commit6f7b0e4a33e4064c8e814cbebeacf7206c9fb850
authorFrediano Ziglio <frediano.ziglio@citrix.com>
Fri, 8 Feb 2013 12:58:36 +0000 (8 12:58 +0000)
committerMatt Fleming <matt.fleming@intel.com>
Mon, 11 Feb 2013 12:39:27 +0000 (11 12:39 +0000)
treef099c36bb6b2b7b3b9d614769a149b612e0ba394
parent8b94ab8751d98c0355d0a0d60453c151e22d6fbb
4k_sector: Support sectors >512

If EBIOS is detected for this drive it tries to read sector size and
use it. If error or no EBIOS 512 is assumed.
Buffer to read sector size is always allocated into the stack.
CHS informations are not readed as not needed and save space not
restoring %dl for drive number.

Signed-off-by: Frediano Ziglio <frediano.ziglio@citrix.com>
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
mbr/gptmbr.S