mbr, gptmbr, isohdpfx: don't lose the carry flag
commit6879e4565b2ed27de10e7a22bba568503012ef1a
authorH. Peter Anvin <hpa@zytor.com>
Tue, 9 Sep 2008 00:30:55 +0000 (8 17:30 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Tue, 9 Sep 2008 00:30:55 +0000 (8 17:30 -0700)
tree886652e829918739e2d293d2b11d16acf3579760
parent6d5d88b94bccafc2e8f28dff016172103f3814ed
mbr, gptmbr, isohdpfx: don't lose the carry flag

Using addw to restore the stack pointer clobbers CF.  Use leaw
instead, even though this relies on the BIOS not clobbering %si.
Worst case we can add a mov %sp, %si or similar.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
mbr/gptmbr.S
mbr/isohdpfx.S
mbr/mbr.S