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 Use testb, faster.



details:   https://anonhg.NetBSD.org/src/rev/d9243d5e6b90
branches:  trunk
changeset: 829366:d9243d5e6b90
user:      maxv <maxv%NetBSD.org@localhost>
date:      Sat Jan 27 17:54:13 2018 +0000

description:
Use testb, faster.

diffstat:

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

diffs (18 lines):

diff -r 728a8794f48e -r d9243d5e6b90 sys/arch/amd64/amd64/locore.S
--- a/sys/arch/amd64/amd64/locore.S     Sat Jan 27 16:21:47 2018 +0000
+++ b/sys/arch/amd64/amd64/locore.S     Sat Jan 27 17:54:13 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: locore.S,v 1.149 2018/01/22 08:14:09 maxv Exp $        */
+/*     $NetBSD: locore.S,v 1.150 2018/01/27 17:54:13 maxv Exp $        */
 
 /*
  * Copyright-o-rama!
@@ -1522,7 +1522,7 @@
        NOT_XEN(cli;)
        SVS_LEAVE
        INTR_RESTORE_GPRS
-       testw   $SEL_UPL,TF_CS(%rsp)    /* interrupted %cs */
+       testb   $SEL_UPL,TF_CS(%rsp)    /* interrupted %cs */
        jz      .Lkexit
        cmpw    $LSEL(LUCODE_SEL, SEL_UPL),TF_CS(%rsp)
        je      .Luexit64



Home | Main Index | Thread Index | Old Index