summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhiranotaka@zng.info <hiranotaka@zng.info>2006-10-30 08:54:23 +0900
committerH. Peter Anvin <hpa@zytor.com>2006-10-30 11:00:27 -0800
commit69271cbba2e262b80b31f74b13cc2e99b296f4ba (patch)
treea35dcad8406e8904beba9807244a53d56091b610
parentb4764f968327b77178d0f8b21e65640420b8fec3 (diff)
downloadsyslinux-69271cbba2e262b80b31f74b13cc2e99b296f4ba.tar.gz
The simple menu system doesn't work with serial console
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
-rw-r--r--com32/lib/sys/xserial_write.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/com32/lib/sys/xserial_write.c b/com32/lib/sys/xserial_write.c
index f119083a..ebdc953e 100644
--- a/com32/lib/sys/xserial_write.c
+++ b/com32/lib/sys/xserial_write.c
@@ -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);
}