summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkato <kato@FreeBSD.org>1997-05-18 12:28:38 +0000
committerkato <kato@FreeBSD.org>1997-05-18 12:28:38 +0000
commita20592cd42cb3b342c187874d9ba8745657e1ebd (patch)
tree8a88ccae57903c9f873cf8241b93f2f31221f475
parent78935288203650bbfef03e14935ed9b38bf3a0f2 (diff)
downloadFreeBSD-src-a20592cd42cb3b342c187874d9ba8745657e1ebd.zip
FreeBSD-src-a20592cd42cb3b342c187874d9ba8745657e1ebd.tar.gz
Synchronize with sys/i386/boot/biosboot/bios.S and
sys/i386/boot/biosboot/serial.S revisions 1.10 and 1.7, respectively.
-rw-r--r--sys/pc98/boot/biosboot/bios.S14
-rw-r--r--sys/pc98/boot/biosboot/serial.S10
2 files changed, 2 insertions, 22 deletions
diff --git a/sys/pc98/boot/biosboot/bios.S b/sys/pc98/boot/biosboot/bios.S
index 60ef896..8aec61c 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 6bae907..33e4329 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
OpenPOWER on IntegriCloud