comboot: fix shuffle_and_boot_rm (used by linux.c32)
authorH. Peter Anvin <hpa@zytor.com>
Fri, 2 Nov 2007 22:42:54 +0000 (15:42 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Fri, 2 Nov 2007 22:42:54 +0000 (15:42 -0700)
Fix shuffle_and_boot_rm, which generated an invalid trampoline; this
was used by linux.c32 among other things.

comboot.inc

index 61da382..bf056bc 100644 (file)
@@ -869,6 +869,7 @@ comapi_shufflerm:
                stosb                           ; MOV AX,imm16 opcode
                fs movsw                        ; imm16
                mov ax,bx
+               add bh,8
                stosw                           ; MOV xS,AX
                loop .segtramp