diff options
author | H. Peter Anvin <hpa@zytor.com> | 2007-07-11 17:20:59 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2007-07-11 17:20:59 -0700 |
commit | 0d628e5402dbfee63181d20b9fb66d9f7fca9b1e (patch) | |
tree | c29cbc241e9af866dc6bf7147b7c86aea0b29d95 /mbr/mbr.S | |
parent | 289d77c6733182088953a02b9c09776272b04203 (diff) | |
download | syslinux-0d628e5402dbfee63181d20b9fb66d9f7fca9b1e.tar.gz |
MBR: shave 2 more bytes
We always re-read the last partition table on any kind of error, so
no need to prevent the code from clobbering it on failure.
Diffstat (limited to 'mbr/mbr.S')
-rw-r--r-- | mbr/mbr.S | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -148,18 +148,20 @@ read_common: * read_partition_table: * Read a partition table (pointed to by %eax), and copy * the partition table into the ptab buffer. + * * Clobbers %si, %di, and %cx, other registers preserved. + * %cx = 0 on exit. + * + * On error, CF is set and ptab is overwritten with junk. */ ptab = _start+446 read_partition_table: call read_sector - jc 20f movw $bootsec+446, %si movw $ptab, %di movw $(16*4/2), %cx rep ; movsw -20: ret /* |