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 Do not use movq for loadin...



details:   https://anonhg.NetBSD.org/src/rev/51e58bd5c012
branches:  trunk
changeset: 318413:51e58bd5c012
user:      joerg <joerg%NetBSD.org@localhost>
date:      Sat Apr 21 23:25:01 2018 +0000
description:
Do not use movq for loading arbitrary 64bit immediates. The ISA
restricts it to 32bit immediates.

diffstat:

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

diffs (27 lines):

diff -r cddc1711a983 -r 51e58bd5c012 sys/arch/amd64/amd64/locore.S
--- a/sys/arch/amd64/amd64/locore.S     Sat Apr 21 23:01:29 2018 +0000
+++ b/sys/arch/amd64/amd64/locore.S     Sat Apr 21 23:25:01 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: locore.S,v 1.163 2018/03/30 09:53:08 maxv Exp $        */
+/*     $NetBSD: locore.S,v 1.164 2018/04/21 23:25:01 joerg Exp $       */
 
 /*
  * Copyright-o-rama!
@@ -1616,7 +1616,7 @@
        .globl  nosvs_leave_altstack, nosvs_leave_altstack_end
 
 LABEL(svs_enter)
-       movq    SVS_UTLS+UTLS_KPDIRPA,%rax
+       movabs  SVS_UTLS+UTLS_KPDIRPA,%rax
        movq    %rax,%cr3
        movq    CPUVAR(KRSP0),%rsp
 LABEL(svs_enter_end)
@@ -1624,7 +1624,7 @@
 LABEL(svs_enter_altstack)
        testb   $SEL_UPL,TF_CS(%rsp)
        jz      1234f
-       movq    SVS_UTLS+UTLS_KPDIRPA,%rax
+       movabs  SVS_UTLS+UTLS_KPDIRPA,%rax
        movq    %rax,%cr3
 1234:
 LABEL(svs_enter_altstack_end)



Home | Main Index | Thread Index | Old Index