Wed Feb 11 07:24:41 2009 UTC ()
PR/40608 - Gao Ya'nan -- typo in comment


(jnemeth)
diff -r1.2 -r1.3 src/sys/arch/i386/stand/lib/dump_eax.S

cvs diff -r1.2 -r1.3 src/sys/arch/i386/stand/lib/dump_eax.S (expand / switch to unified diff)

--- src/sys/arch/i386/stand/lib/dump_eax.S 2008/04/28 20:23:25 1.2
+++ src/sys/arch/i386/stand/lib/dump_eax.S 2009/02/11 07:24:40 1.3
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: dump_eax.S,v 1.2 2008/04/28 20:23:25 martin Exp $ */ 1/* $NetBSD: dump_eax.S,v 1.3 2009/02/11 07:24:40 jnemeth Exp $ */
2 2
3/*- 3/*-
4 * Copyright (c) 2003 The NetBSD Foundation, Inc. 4 * Copyright (c) 2003 The NetBSD Foundation, Inc.
5 * All rights reserved. 5 * All rights reserved.
6 * 6 *
7 * This code is derived from software contributed to The NetBSD Foundation 7 * This code is derived from software contributed to The NetBSD Foundation
8 * by David Laight. 8 * by David Laight.
9 * 9 *
10 * Redistribution and use in source and binary forms, with or without 10 * Redistribution and use in source and binary forms, with or without
11 * modification, are permitted provided that the following conditions 11 * modification, are permitted provided that the following conditions
12 * are met: 12 * are met:
13 * 1. Redistributions of source code must retain the above copyright 13 * 1. Redistributions of source code must retain the above copyright
14 * notice, this list of conditions and the following disclaimer. 14 * notice, this list of conditions and the following disclaimer.
@@ -42,22 +42,22 @@ ENTRY(dump_eax) @@ -42,22 +42,22 @@ ENTRY(dump_eax)
42 push %es /* allow for %es != %ds */ 42 push %es /* allow for %es != %ds */
43 push %ds 43 push %ds
44 pop %es 44 pop %es
45 movw $dump_eax_buff, %si 45 movw $dump_eax_buff, %si
46 mov %si, %di 46 mov %si, %di
47 movw $8, %cx 47 movw $8, %cx
481: roll $4, %eax 481: roll $4, %eax
49 push %ax 49 push %ax
50 andb $0x0f, %al 50 andb $0x0f, %al
51 addb $0x30, %al /* 30..3f - clear AF */ 51 addb $0x30, %al /* 30..3f - clear AF */
52#if 1 /* 5 bytes to generate real hex... */ 52#if 1 /* 5 bytes to generate real hex... */
53 daa /* 30..39, 40..45 */ 53 daa /* 30..39, 40..45 */
54 addb $0xc0, %al /* f0..f9, 00..05 */ 54 addb $0xc0, %al /* f0..f9, 00..05 */
55 adcb $0x40, %al /* 30..39, 41..45 */ 55 adcb $0x40, %al /* 30..39, 41..46 */
56#endif 56#endif
57 stosb 57 stosb
58 pop %ax 58 pop %ax
59 loop 1b 59 loop 1b
60 movw $0x20, %ax /* space + null */ 60 movw $0x20, %ax /* space + null */
61 stosw 61 stosw
62 pop %es 62 pop %es
63 jmp message_1 63 jmp message_1