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 %bl is part of %bx, %bx contains the...
details: https://anonhg.NetBSD.org/src/rev/881e655270cc
branches: trunk
changeset: 762357:881e655270cc
user: jakllsch <jakllsch%NetBSD.org@localhost>
date: Sun Feb 20 05:45:48 2011 +0000
description:
%bl is part of %bx, %bx contains the address we requested from the BIOS.
Thus, use %cl instead of %bl for return value storage.
diffstat:
sys/arch/i386/stand/lib/biosmemps2.S | 13 ++++++-------
1 files changed, 6 insertions(+), 7 deletions(-)
diffs (47 lines):
diff -r 0b0d5e727c82 -r 881e655270cc sys/arch/i386/stand/lib/biosmemps2.S
--- a/sys/arch/i386/stand/lib/biosmemps2.S Sun Feb 20 05:42:34 2011 +0000
+++ b/sys/arch/i386/stand/lib/biosmemps2.S Sun Feb 20 05:45:48 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: biosmemps2.S,v 1.4 2009/11/21 11:52:57 dsl Exp $ */
+/* $NetBSD: biosmemps2.S,v 1.5 2011/02/20 05:45:48 jakllsch Exp $ */
/*-
* Copyright (c) 2003 The NetBSD Foundation, Inc.
@@ -56,7 +56,7 @@
# do int15, function 0xc0 call to discover if C7h is supported
movb $0xc0, %ah
int $0x15
- setc %bl
+ setc %cl
jc out # 0xc0 not supported if carry set
# check feature byte 2, bit 4 to see if return memory map is supported
@@ -64,8 +64,8 @@
andb $0x10, %al
jnz getmem # 0xc7 supported
- # set %bl to indicate failure, and exit
- movb $2, %bl
+ # set %cl to indicate failure, and exit
+ movb $2, %cl
jmp out
getmem:
@@ -81,15 +81,14 @@
# actually call int15, function 0xc7 now
movb $0xc7, %ah
int $0x15
- setc %bl # save carry
+ setc %cl # save carry
pop %ds
out:
calll _C_LABEL(real_to_prot)
.code32
- xorl %eax, %eax
- movb %bl, %al # return value in %ax
+ movzbl %cl, %eax # return value in %eax
pop %edi
pop %esi
Home |
Main Index |
Thread Index |
Old Index