[syslinux] where to swap

Thomas Schmitt scdbackup at gmx.net
Sat Mar 25 13:28:16 PDT 2017


Hi,

Martin Str|mberg wrote:
> Given David's last report the part:
> -       jmp     1f
> +       jmp     2f
> 1:
> +       xor     %cx, %cx        /* Clear EBIOS flag. */
> +2:
> 
> can be ignored. His BIOS isn't corrputing CX (which I
> thought). However that part doesn't hurt if it remains.

I think it still has good reason to exist. The test

	cmpw	$0xaa55, %bx
	jne	1f

could cause a jump which could push a non-zero CX to the stack.
(Whatever reason there might be not to get the 0xaa55 signature
 but to get non-zero CX.)

I have now updated the Debian bug report:
  https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=857597#55


Have a nice day :)

Thomas



More information about the Syslinux mailing list