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 use %e?x instead of %?x as 'xorl' ar...
details: https://anonhg.NetBSD.org/src/rev/11d9166da5cd
branches: trunk
changeset: 542205:11d9166da5cd
user: jdolecek <jdolecek%NetBSD.org@localhost>
date: Thu Jan 23 21:01:18 2003 +0000
description:
use %e?x instead of %?x as 'xorl' arguments
use %al for 'movb' target, and 'andb' for masking the result with $0x02
since 'and' conveniently sets ZF, use 'and+jnz' instead of 'and+cmp+jne'
diffstat:
sys/arch/i386/stand/lib/biosmca.S | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
diffs (39 lines):
diff -r ef73decd7ead -r 11d9166da5cd sys/arch/i386/stand/lib/biosmca.S
--- a/sys/arch/i386/stand/lib/biosmca.S Thu Jan 23 20:41:01 2003 +0000
+++ b/sys/arch/i386/stand/lib/biosmca.S Thu Jan 23 21:01:18 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: biosmca.S,v 1.2 2001/05/14 22:14:47 jdolecek Exp $ */
+/* $NetBSD: biosmca.S,v 1.3 2003/01/23 21:01:18 jdolecek Exp $ */
/*
* Ported to boot 386BSD by Julian Elischer (julian%tfs.com@localhost) Sept 1992
@@ -83,22 +83,22 @@
call _C_LABEL(prot_to_real) # enter real mode
- # zero %cx
+ # zero %ecx
data32
- xorl %cx, %cx
+ xorl %ecx, %ecx
data32
- xorl %ax, %ax
+ xorl %eax, %eax
movb $0xc0, %ah # subfunction
int $0x15
jc back
# check feature byte 1 if MCA bus present and replaces ISA
addr32
- movb %es:5(%ebx), %ax
- andw $0x02, %ax # bit 1 set means MCA instead of ISA
- cmpw $0x02, %ax # see also arch/i386/mca/mca_machdep.c
- jne back
+ movb %es:5(%ebx), %al
+ andb $0x02, %al # bit 1 set means MCA instead of ISA
+ # see also arch/i386/mca/mca_machdep.c
+ jnz back
# save model and submodel bytes to %cx
addr32
Home |
Main Index |
Thread Index |
Old Index