Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/i386/stand/lib/crt/bootsect - Use the proper multip...
details: https://anonhg.NetBSD.org/src/rev/7ee18849a072
branches: trunk
changeset: 472491:7ee18849a072
user: christos <christos%NetBSD.org@localhost>
date: Fri Apr 30 15:31:17 1999 +0000
description:
- Use the proper multiply instructions so that we don't get truncated.
diffstat:
sys/arch/i386/stand/lib/crt/bootsect/start_bootsect.S | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diffs (22 lines):
diff -r 8154a5a9f39f -r 7ee18849a072 sys/arch/i386/stand/lib/crt/bootsect/start_bootsect.S
--- a/sys/arch/i386/stand/lib/crt/bootsect/start_bootsect.S Fri Apr 30 15:29:44 1999 +0000
+++ b/sys/arch/i386/stand/lib/crt/bootsect/start_bootsect.S Fri Apr 30 15:31:17 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: start_bootsect.S,v 1.13 1999/04/28 23:24:42 fvdl Exp $ */
+/* $NetBSD: start_bootsect.S,v 1.14 1999/04/30 15:31:18 christos Exp $ */
/*
* BIOS bootsector startup
@@ -222,10 +222,9 @@
orl %ebx,%ecx
incl %ecx /* cx has #cylinders */
- mul %edx /* h * s (will fit in 16 bits) */
+ mull %edx /* h * s (will fit in 16 bits) */
data32
- mul %ecx /* eax = c * h * s */
- data32
+ mull %ecx /* eax = c * h * s */
data32
addr32
Home |
Main Index |
Thread Index |
Old Index