The simple menu system doesn't work with serial console
authorhiranotaka@zng.info <hiranotaka@zng.info>
Sun, 29 Oct 2006 23:54:23 +0000 (08:54 +0900)
committerH. Peter Anvin <hpa@zytor.com>
Mon, 30 Oct 2006 19:00:27 +0000 (11:00 -0800)
Hello,

I have just get started using pxelinux, and encountered a problem.
The document says the simple menu system supports serial console,
and it works on syslinux 0.2x, but it doesn't seem to work in 0.3x and 0.4x.
I confirmed that this patch fixed the bug.

*** com32/lib/sys/xserial_write.c~      2006-10-30 08:30:35.000000000 +0900

com32/lib/sys/xserial_write.c

index f119083..ebdc953 100644 (file)
@@ -43,7 +43,8 @@ static void emit(char ch)
 {
   static com32sys_t ireg;      /* Zeroed with the BSS */
 
-  ireg.eax.w[0] = 0x0400 | (unsigned char)ch;
+  ireg.eax.b[1] = 0x04;
+  ireg.edx.b[0] = ch;
 
   __intcall(0x21, &ireg, NULL);
 }