From 655d6f9bfa375f9366fca41bb8dc5842183330f2 Mon Sep 17 00:00:00 2001 From: KATO Takenori Date: Sun, 18 May 1997 12:28:38 +0000 Subject: [PATCH] Synchronize with sys/i386/boot/biosboot/bios.S and sys/i386/boot/biosboot/serial.S revisions 1.10 and 1.7, respectively. --- sys/pc98/boot/biosboot/bios.S | 14 +------------- sys/pc98/boot/biosboot/serial.S | 10 +--------- 2 files changed, 2 insertions(+), 22 deletions(-) diff --git a/sys/pc98/boot/biosboot/bios.S b/sys/pc98/boot/biosboot/bios.S index 60ef896a5a47..8aec61c91fc9 100644 --- a/sys/pc98/boot/biosboot/bios.S +++ b/sys/pc98/boot/biosboot/bios.S @@ -24,7 +24,7 @@ * the rights to redistribute these changes. * * from: Mach, Revision 2.2 92/04/04 11:34:26 rpd - * $Id$ + * $Id: bios.S,v 1.6 1997/02/22 09:43:05 peter Exp $ */ /* @@ -81,9 +81,6 @@ ENTRY(biosread) push %ebx push %esi push %edi - push %ecx - push %edx - push %es movb 0x14(%ebp), %dl /* sector */ movb 0x10(%ebp), %dh /* head */ @@ -131,9 +128,6 @@ ENTRY(biosread) xor %eax, %eax movb %bh, %al /* return value in %ax */ - pop %es - pop %edx - pop %ecx pop %edi pop %esi pop %ebx @@ -228,12 +222,9 @@ nochar: ENTRY(get_diskinfo) push %ebp mov %esp, %ebp - push %es push %ebx push %esi push %edi - push %ecx - push %edx movb 0x8(%ebp), %dl /* diskinfo(drive #) */ call EXT(prot_to_real) /* enter real mode */ @@ -281,12 +272,9 @@ ok: movb %dh, %ah /* max head */ movb %dl, %al /* max sector (and # sectors) */ - pop %edx - pop %ecx pop %edi pop %esi pop %ebx - pop %es pop %ebp ret diff --git a/sys/pc98/boot/biosboot/serial.S b/sys/pc98/boot/biosboot/serial.S index 6bae9072bf27..33e4329162ce 100644 --- a/sys/pc98/boot/biosboot/serial.S +++ b/sys/pc98/boot/biosboot/serial.S @@ -24,7 +24,7 @@ * the rights to redistribute these changes. * * from: Mach, Revision 2.2 92/04/04 11:34:26 rpd - * $Id$ + * $Id: serial.S,v 1.4 1997/02/22 09:43:08 peter Exp $ */ /* @@ -101,7 +101,6 @@ WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ENTRY(serial_putc) push %ebp mov %esp, %ebp - push %edx mov $COMCONSOLE + 2, %edx # line status reg 1: inb %dx, %al @@ -113,7 +112,6 @@ ENTRY(serial_putc) sub $2, %edx # TX output reg outb %al, %dx # send this one - pop %edx pop %ebp ret @@ -125,7 +123,6 @@ ENTRY(serial_putc) ENTRY(serial_getc) push %ebp mov %esp, %ebp - push %edx mov $COMCONSOLE + 2, %edx # line status reg 1: @@ -141,7 +138,6 @@ ENTRY(serial_getc) jne 2f mov $0x08, %eax # look like BS 2: - pop %edx pop %ebp ret @@ -152,14 +148,12 @@ ENTRY(serial_getc) ENTRY(serial_ischar) push %ebp mov %esp, %ebp - push %edx xorl %eax, %eax mov $COMCONSOLE + 2, %edx # line status reg inb %dx, %al andb $0x02, %al # RX char available? - pop %edx pop %ebp ret @@ -170,7 +164,6 @@ ENTRY(serial_ischar) ENTRY(init_serial) push %ebp mov %esp, %ebp - push %edx /* set 8253 */ movb 0xb6, %al @@ -219,6 +212,5 @@ ENTRY(init_serial) movb $0x37, %al outb %al, %dx - pop %edx pop %ebp ret