summaryrefslogtreecommitdiffstats
path: root/sys/boot
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2001-11-07 01:20:33 +0000
committerjhb <jhb@FreeBSD.org>2001-11-07 01:20:33 +0000
commita4e77dae6a16c485e0262079fc4590c157667d97 (patch)
tree8d9ef886f6fadb92d57c44be8223d2632aea334f /sys/boot
parent178d6888d63728d377fd8046bc4f60db2fee864e (diff)
downloadFreeBSD-src-a4e77dae6a16c485e0262079fc4590c157667d97.zip
FreeBSD-src-a4e77dae6a16c485e0262079fc4590c157667d97.tar.gz
Remove a few more debugging bits and turn on twiddle output while reading
from the CD. This turns off the dual console output to COM1.
Diffstat (limited to 'sys/boot')
-rw-r--r--sys/boot/i386/cdboot/cdboot.s18
1 files changed, 3 insertions, 15 deletions
diff --git a/sys/boot/i386/cdboot/cdboot.s b/sys/boot/i386/cdboot/cdboot.s
index 78fef20..bf30bff 100644
--- a/sys/boot/i386/cdboot/cdboot.s
+++ b/sys/boot/i386/cdboot/cdboot.s
@@ -103,9 +103,6 @@ start: cld # string ops inc
mov %ax,%ds # setup the
mov %ax,%es # data segments
mov %dl,drive # Save BIOS boot device
- mov $0xe3,%al
- xor %dx,%dx
- int $0x14 # Init COM1 9600,n,8,1
mov $msg_welcome,%si # %ds:(%si) -> welcome message
call putstr # display the welcome message
#
@@ -140,8 +137,7 @@ load_vd: push %eax # Save %eax
jne load_vd # No, read next
mov $msg_novd,%si # No VD
jmp error # Halt
-have_vd: mov $msg_vd,%si # Have Primary VD
- call putstr
+have_vd: # Have Primary VD
#
# Lookup the loader binary.
#
@@ -387,7 +383,7 @@ read: push %si # Save
mov %ebx,%eax # Convert address
shr $4,%eax # to segment
mov %ax,edd_addr+0x2 # and store
-read.retry: #call twiddle # Entertain the user
+read.retry: call twiddle # Entertain the user
push %dx # Save
mov $edd_packet,%si # Address Packet
mov %dh,edd_len # Set length
@@ -429,14 +425,7 @@ putstr.putc: call putc # output char
#
# Display a single char.
#
-putc: push %ax
- push %dx
- mov $0x1,%ah
- xor %dx,%dx
- int $0x14
- pop %dx
- pop %ax
- mov $0x7,%bx # attribute for output
+putc: mov $0x7,%bx # attribute for output
mov $0xe,%ah # BIOS: put_char
int $0x10 # call BIOS, print char in %al
ret # Return to caller
@@ -553,7 +542,6 @@ msg_relocate: .asciz "Relocating the loader and the BTX\r\n"
msg_jump: .asciz "Starting the BTX loader\r\n"
msg_badread: .ascii "Read Error: 0x"
hex_error: .ascii "00\r\n"
-msg_vd: .asciz "Read Volume Descriptor\r\n"
msg_novd: .asciz "Could not find Primary Volume Descriptor\r\n"
msg_lookup: .asciz "Looking up "
msg_lookup2: .asciz "... "
OpenPOWER on IntegriCloud