1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-17 10:26:15 +00:00

Synchronize with sys/i386/boot/biosboot/bios.S and

sys/i386/boot/biosboot/serial.S revisions 1.10 and 1.7, respectively.
This commit is contained in:
KATO Takenori 1997-05-18 12:28:38 +00:00
parent 3d0bf1aa99
commit 655d6f9bfa
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=25893
2 changed files with 2 additions and 22 deletions

View File

@ -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

View File

@ -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