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/2545cc08a0a6
branches:  trunk
changeset: 819789:2545cc08a0a6
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 6cbafec69fa7 -r 2545cc08a0a6 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