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 Fix the name of the labels. I think I g...



details:   https://anonhg.NetBSD.org/src/rev/22bd1a25b42a
branches:  trunk
changeset: 349647:22bd1a25b42a
user:      maxv <maxv%NetBSD.org@localhost>
date:      Sat Dec 17 13:49:05 2016 +0000

description:
Fix the name of the labels. I think I got confused by jne, so while here
replace it by jnz, which is more explicit.

diffstat:

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

diffs (30 lines):

diff -r 28898f6e9527 -r 22bd1a25b42a sys/arch/amd64/amd64/locore.S
--- a/sys/arch/amd64/amd64/locore.S     Sat Dec 17 13:43:33 2016 +0000
+++ b/sys/arch/amd64/amd64/locore.S     Sat Dec 17 13:49:05 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: locore.S,v 1.117 2016/12/16 19:52:22 maxv Exp $        */
+/*     $NetBSD: locore.S,v 1.118 2016/12/17 13:49:05 maxv Exp $        */
 
 /*
  * Copyright-o-rama!
@@ -1141,9 +1141,9 @@
 
        /* The 32bit LWPs are handled differently. */
        testl   $PCB_COMPAT32,PCB_FLAGS(%r14)
-       jne     lwp_64bit
+       jnz     lwp_32bit
 
-lwp_32bit:
+lwp_64bit:
        /* Zero out %fs/%gs registers. */
        xorq    %rax,%rax
        movw    %ax,%fs
@@ -1170,7 +1170,7 @@
 
        jmp     switch_return
 
-lwp_64bit:
+lwp_32bit:
        /* Reload %fs/%gs GDT descriptors. */
        movq    CPUVAR(GDT),%rcx
        movq    PCB_FS(%r14),%rax



Home | Main Index | Thread Index | Old Index