From cac15e3814fdc7dcd94b48e13ea1e949d2c9e5c1 Mon Sep 17 00:00:00 2001 From: phk Date: Thu, 17 Jun 2004 12:02:25 +0000 Subject: Save a couple of bytes for the SIO case. --- sys/boot/i386/boot0/boot0.S | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'sys/boot') diff --git a/sys/boot/i386/boot0/boot0.S b/sys/boot/i386/boot0/boot0.S index 5284188..3349009 100644 --- a/sys/boot/i386/boot0/boot0.S +++ b/sys/boot/i386/boot0/boot0.S @@ -96,9 +96,8 @@ main: /* * Initialize the serial port. bioscom preserves the driver number in DX. */ - movb COMSPEED,%al # defined by Makefile - movb $0x00,%ah # BIOS: Set COM Port - call bioscom + movw COMSPEED,%ax # defined by Makefile + callw bioscom #endif /* SIO */ /* * Check what flags were loaded with us, specifically, Use a predefined Drive. @@ -372,7 +371,6 @@ putchr: #else /* SIO */ putchr: movb $0x01,%ah # BIOS: Send - xorw %cx,%cx # No timeout bioscom: pushw %dx # Save xorw %dx,%dx # Use COM1 -- cgit v1.1