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 Adjust Xsyscall_svs to not use movq for...



details:   https://anonhg.NetBSD.org/src/rev/f9286599d590
branches:  trunk
changeset: 361323:f9286599d590
user:      joerg <joerg%NetBSD.org@localhost>
date:      Mon Apr 23 22:53:04 2018 +0000

description:
Adjust Xsyscall_svs to not use movq for 64bit immediates either.

diffstat:

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

diffs (29 lines):

diff -r 4dc110d3f0cd -r f9286599d590 sys/arch/amd64/amd64/locore.S
--- a/sys/arch/amd64/amd64/locore.S     Mon Apr 23 19:55:00 2018 +0000
+++ b/sys/arch/amd64/amd64/locore.S     Mon Apr 23 22:53:04 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: locore.S,v 1.164 2018/04/21 23:25:01 joerg Exp $       */
+/*     $NetBSD: locore.S,v 1.165 2018/04/23 22:53:04 joerg Exp $       */
 
 /*
  * Copyright-o-rama!
@@ -1388,8 +1388,8 @@
 
        /* Get the LWP's kernel stack pointer in %rax */
        .if     \is_svs
-               movq    %rax,SVS_UTLS+UTLS_SCRATCH
-               movq    SVS_UTLS+UTLS_RSP0,%rax
+               movabs  %rax,SVS_UTLS+UTLS_SCRATCH
+               movabs  SVS_UTLS+UTLS_RSP0,%rax
        .else
                movq    %rax,CPUVAR(SCRATCH)
                movq    CPUVAR(CURLWP),%rax
@@ -1407,7 +1407,7 @@
 
        /* Restore %rax */
        .if     \is_svs
-               movq    SVS_UTLS+UTLS_SCRATCH,%rax
+               movabs  SVS_UTLS+UTLS_SCRATCH,%rax
        .else
                movq    CPUVAR(SCRATCH),%rax
        .endif



Home | Main Index | Thread Index | Old Index