Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/amd64/amd64 cpu_counter: only need to clear %eax (z...



details:   https://anonhg.NetBSD.org/src/rev/687b8784e3b8
branches:  trunk
changeset: 932485:687b8784e3b8
user:      ad <ad%NetBSD.org@localhost>
date:      Fri May 08 21:58:03 2020 +0000

description:
cpu_counter: only need to clear %eax (zero extends).

diffstat:

 sys/arch/amd64/amd64/cpufunc.S |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 511c84f1a875 -r 687b8784e3b8 sys/arch/amd64/amd64/cpufunc.S
--- a/sys/arch/amd64/amd64/cpufunc.S    Fri May 08 21:43:54 2020 +0000
+++ b/sys/arch/amd64/amd64/cpufunc.S    Fri May 08 21:58:03 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cpufunc.S,v 1.51 2020/05/02 17:14:01 bouyer Exp $      */
+/*     $NetBSD: cpufunc.S,v 1.52 2020/05/08 21:58:03 ad Exp $  */
 
 /*
  * Copyright (c) 1998, 2007, 2008 The NetBSD Foundation, Inc.
@@ -253,7 +253,7 @@
 END(msr_onfault)
 
 ENTRY(cpu_counter)
-       xorq    %rax, %rax
+       xorl    %eax, %eax
        rdtsc
        shlq    $32, %rdx
        orq     %rdx, %rax



Home | Main Index | Thread Index | Old Index